4-3编程练习 麻烦老师检查下 看看还有没有能优化的地方
来源:4-3 编程练习
Snowy丶
2018-03-08 17:01:01
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.content{
width:1903px;
height:4033px;
background-image:url(http://climg.mukewang.com/59c9f7ce0001839219034033.png);
}
.left,.right{
width:224px;
height:364px;
position:fixed;
top:50%;
margin-top:-182px;
}
.left{
left:0;
background-image:url(http://climg.mukewang.com/5a3383d00001a3dd02240364.png);
}
.right{
right:0;
background-image:url(http://climg.mukewang.com/5a3383c70001f1b702240364.png);
}
</style>
</head>
<body class="content">
<div class="left"></div>
<div class="right"></div>
</body>
</html>1回答
测试了你的代码,实现的效果没有问题的。
祝学习愉快!
相似问题