老师检查下代码,谢谢
来源:3-12 编程练习
不厌_
2021-05-21 11:15:07
相关代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>编程练习</title>
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
.imooc {
width: 1903;
height: 4033;
margin: 0px auto;
}
.fix {
position: fixed;
width: 224px;
height: 364px;
top: 50%;
margin-top: -182px;
}
div.left-ad {
left: 0px;
}
div.right-ad {
right: 0px;
}
</style>
</head>
<body>
<main class="imooc">
<img src="http://climg.mukewang.com/59c9f7ce0001839219034033.png" alt="">
</main>
<aside>
<!-- 左边广告 -->
<div class="left-ad fix">
<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png" alt="">
</div>
<!-- 右边广告 -->
<div class="right-ad fix">
<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png" alt="">
</div>
</aside>
</body>
</html>
1回答
同学你好,代码以下位置处缺少“px”单位,如图:
祝学习愉快!
相似问题