老师请检查
来源:7-2 编程练习
消除bug
2019-05-02 17:41:39
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{
padding:0;
margin:0;
}
.div1{
background:url('http://climg.mukewang.com/59c9f7ce0001839219034033.png');
width:1500px;
height:2000px;
position: relative;
}
.div2{
position: fixed;
top:50%;
width: 50px;
height: 200px;
margin-top: -100px;
}
.div3{
position: fixed;
top: 50%;
width: 50px;
height: 200px;
right: 150px;
margin-top: -100px;
}
</style>
</head>
<body>
<div class="div1">
<div class="div2">
<img class="img2" src="http://climg.mukewang.com/5a3383c70001f1b702240364.png">
</div>
<div class="div3">
<img class="img3" src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png">
</div>
</div>
</body>
</html>1回答
正确哦~棒棒哒!继续加油!
相似问题