请老师检查。
来源:4-3 编程练习
伪装的很酷
2018-08-21 10:33:02
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
.bgimage{
width:100%;
height:4033px;
background:url(http://climg.mukewang.com/59c9f7ce0001839219034033.png);
background-position:center top;
background-repeat:no-repeat;
}
.leftbar{
width:200px;
height:400px;
position:fixed;
background:url(http://climg.mukewang.com/5a3383d00001a3dd02240364.png);
top:50%;
left:0;
margin-top:-200px;
}
.rightbar{
width:200px;
height:400px;
position:fixed;
background:url(http://climg.mukewang.com/5a3383c70001f1b702240364.png);
top:50%;
right:0;
margin-top:-200px; }
</style>
</head>
<body>
<div class="bgimage">
<div class="leftbar"></div>
<div class="rightbar"></div>
</div>
</body>
</html>
1回答
测试了你的代码,效果可以实现
继续加油!