body背景图不动,渐变色背景

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="index.css" />
		<style>
			div {
				height: 100px;
				margin-bottom: 10px;
				margin-top: 10px;
				background-color: white;
			}
			/*部分浏览器不支持*/
			body {
				/*width: 100%;
				height: 100%;
				font-family: "华文细黑";
				background: url("img/jbs.png") no-repeat;
				background-size: 100%;
				background-attachment: fixed;*/
			}
			
			body:before {
				content: ' ';
				position: fixed;
				z-index: -1;
				top: 0;
				right: 0;
				bottom: 0;
				left: 0;
				background: url("img/jbs2.jpeg") center 0 no-repeat;
				background-size: cover;
			}
		</style>
	</head>

	<body>
		<div class="mui-content">
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
			<div id="">
				11
			</div>
		</div>
	</body>
	<script src="js/mui.min.js"></script>

</html>

相关文章:

  • 2021-10-27
  • 2021-12-22
  • 2021-09-16
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-10-17
  • 2022-01-15
相关资源
相似解决方案