老师您好,请问这样写是否正确
来源:7-2 编程练习
慕槑槑
2020-01-03 22:12:20
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#img1{
width:100%;
height:100%;
}
#img2{
width:200px;
height:300px;
position:fixed;
top:50%;
}
#img3{
width:200px;
height:300px;
position:fixed;
top:50%;
right:0px;
}
</style>
</head>
<body>
<div>
<img src="http://climg.mukewang.com/59c9f7ce0001839219034033.png" id="img1">
</div>
<div>
<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png" id="img2">
</div>
<div>
<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png" id="img3">
</div>
</body>
</html>1回答
你好,样式显示是正确的,祝学习愉快!加油~~
相似问题