请老师检查下代码
来源:7-2 编程练习
慕婉清2005302
2020-09-06 17:57:11
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.div1{
width: 100%
}
.div1-1{
position: fixed;
top: 50%;
right: 0;
margin-top: -182px;
}
.div1-2{
position: fixed;
top: 50%;
left: 0;
margin-top: -182px;
}
</style>
</head>
<body>
<div class="div1">
<img class="img1" src="http://climg.mukewang.com/59c9f7ce0001839219034033.png">
<div class="div1-1">
<img class="img2" src="http://climg.mukewang.com/5a3383c70001f1b702240364.png">
</div>
<div class="div1-2">
<img class="img3" src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png">
</div>
</div>
</body>
</html>1回答
好帮手慕小尤
2020-09-06
同学你好,存在下滚动条,建议同学为img1设置宽度,使其100%平铺浏览器,如下所示:

如果我的回答解决了你的疑惑,请采纳!祝学习愉快~
相似问题