老师帮忙检查下

来源:3-12 编程练习

梦小小

2021-02-20 17:21:39

<!DOCTYPE html>

<html lang="en">


<head>

<meta charset="UTF-8">

<title></title>

<style>

* {

margin: 0;

padding: 0;


}


.bgpic {

width: 100%;

height: 100%;



}


.rightad {

width: 224px;

height: 364px;

position: fixed;

top: 50%;

margin-top: -182px;

right:0;


}

.leftad{

width: 224px;

height: 364px;

position: fixed;

top: 50%;

margin-top: -182px;

left:0;

}


</style>

</head>


<body>

<div class="bgpic">

<img src="http://climg.mukewang.com/59c9f7ce0001839219034033.png" alt="">

<div class="rightad">

<img src="http://climg.mukewang.com/5a3383c70001f1b702240364.png" alt="">

</div>

<div class="leftad">

<img src="http://climg.mukewang.com/5a3383d00001a3dd02240364.png"alt="">

</div>

</div>


</body>


</html>


写回答

1回答

好帮手慕张

2021-02-20

同学你好,代码效果正确,继续加油,祝学习愉快!


0

0 学习 · 15276 问题

查看课程