检查代码!
来源:4-3 编程练习
福徐贵
2020-05-24 21:26:30
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.bg img{
width: 100%;
margin: 0 auto;
}
.left img{
position: fixed;
left: 0;
top: 50%;
width: 200px;
height: 250px;
margin-top:-125px;
}
.right img{
position: fixed;
right: 0;
top: 50%;
width: 200px;
height: 250px;
margin-top:-125px;
}
</style>
</head>
<body>
<div class="bg">
<img src="http://climg.mukewang.com/59c9f7ce0001839219034033.png">
</div>
<div class="left">
<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png">
</div>
<div class="right">
<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png">
</div>
</body>
</html>
1回答
好帮手慕小鱼
2020-05-25
同学你好,代码是正确的。继续加油,祝学习愉快~