4-3 编程练习 请老师检查
来源:4-3 编程练习
青栲
2020-09-13 15:51:13
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{
margin:0;
padding:0;
}
html,body{
width:100%;
height:100%;
}
.container{
width:100%;
height:1200px;
background:url(http://climg.mukewang.com/59c9f7ce0001839219034033.png) center top no-repeat;
}
.banner-left{
width:220px;
height:360px;
background:url(http://climg.mukewang.com/5a3383d00001a3dd02240364.png) no-repeat;
position:fixed;
top:50%;
margin-top:-180px;
left:0;
}
.banner-right{
width:220px;
height:360px;
background:url(http://climg.mukewang.com/5a3383c70001f1b702240364.png) no-repeat;
position:fixed;
top:50%;
margin-top:-180px;
right:0;
}
</style>
</head>
<body>
<div class="container">
<div class="banner-left"></div>
<div class="banner-right"></div>
</div>
</body>
</html>
1回答
好帮手慕码
2020-09-13
同学你好,代码正确,继续加油,祝学习愉块~
相似问题