请老师检查
来源:7-2 编程练习
诗曦
2019-04-01 09:31:11
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>定位练习</title>
<style>
* {
margin:0;
padding:0;
}
img {
width:auto;
height:auto;
max-width:100%;
max-height:100%;
}
.div00 {
width:100%;
height:2000px;
background-image:url("http://climg.mukewang.com/59c9f7ce0001839219034033.png");
position:relative;
}
.div01 {
width:123px;
height:200px;
position:fixed;
right:0px;
top:50%;
margin-top:-100px;
}
.div02 {
width:123px;
height:200px;
position:fixed;
left:0px;
top:50%;
margin-top:-100px;
}
</style>
</head>
<body>
<div class="div00">
<div class="div01">
<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png"/>
</div>
<div class="div02">
<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png"/>
</div>
</div>
</body>
</html>
1回答
您好,正确哦~棒棒哒!
相似问题