老师,这样做对吗
来源:4-3 编程练习
Tiny丶
2019-05-27 23:46:49
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{
margin:0;
padding:0;
}
.one{
width:100%;
height:4100px;
background:url("http://climg.mukewang.com/59c9f7ce0001839219034033.png") center no-repeat;
}
.qianduan img{
width:220px;
height:300px;
position:fixed;
left:0;
top:50%;
margin-top:-150px;
}
.java img{
width:220px;
height:300px;
position:fixed;
right:0;
top:50%;
margin-top:-150px;
}
</style>
</head>
<body>
<div class="one">
<div class="qianduan"><img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png"></div>
<div class="java"><img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png"></div>
</div>
</body>
</html>
1回答
你好,定位是没有问题的,很棒哦!
祝学习愉快!
相似问题