4-3作业提交
来源:4-3 编程练习
qq_慕斯7214945
2020-07-28 10:01:54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style text="text/css">
*{
margin: 0;
padding:0;
}
.page{
background: url('http://climg.mukewang.com/59c9f7ce0001839219034033.png') top center no-repeat;
width: 100%;
height: 4043px;
}
.ad-1{
position: fixed;
top: 50%;
left: 0;
margin-top: -184px;
}
.ad-1{
width: 224px;
height: 364px;
}
.ad-2{
position: fixed;
top: 50%;
right: 0;
margin-top: -184px;
}
.ad-2{
width: 224px;
height: 364px;
}
</style>
</head>
<body>
<div class="page">
<div class="ad-1">
<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png" alt="">
</div>
<div class="ad-2">
<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png" alt="">
</div>
</div>
</body>
</html>
1回答
好帮手慕久久
2020-07-28
同学你好,广告垂直居中,有误差,以“.ad-2”为例,修改如下:
如果我的回答帮到了你,欢迎采纳,祝学习愉快!
相似问题