麻烦检查优化一下代码
来源:3-12 编程练习
			扶耳摩兔
2021-01-08 17:25:51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
padding: 0;
margin: 0;
}
.mk{
width: 1903px;
height: 4033px;
margin: 0 auto;
}
.lpic{
width: 224px;
height: 364px;
position: fixed;
left: 0;
top: 50%;
margin-top: -182px;
}
.rpic{
width: 224px;
height: 364px;
position: fixed;
right: 0;
top: 50%;
margin-top: -182px;
}
</style>
</head>
<body>
<div class="mk">
<img src="http://climg.mukewang.com/59c9f7ce0001839219034033.png" alt="">
<div class="lpic">
<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png" alt="">
</div>
<div class="rpic">
<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png" alt="">
</div>
</div>
</body>
</html>
1回答
同学你好,代码实现效果很棒,很简洁不需要优化了。
继续加油,祝学习愉快!
相似问题