老师 您好 帮我看看效果吧

来源:4-3 编程练习

小虾虾小

2019-04-18 01:45:06

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

<title></title>

<style>

    *{

        margin:0;

        padding:0;

    }

    .content{

        width:1903px;

        height:4033px;

        background: url(http://climg.mukewang.com/59c9f7ce0001839219034033.png);

    }

    .ad1{

        width:224px;

        height:364px;

        background: url(http://climg.mukewang.com/5a3383c70001f1b702240364.png);

        position: fixed;

        left: 0;

        top: 50%;

        margin-top: -182px;

    }

    .ad2{

        width:224px;

        height:364px;

        background: url(http://climg.mukewang.com/5a3383d00001a3dd02240364.png);

        position: fixed;

        right: 0;

        top: 50%;

        margin-top: -182px;

    }

</style>

</head>

<body>

<div class="content"></div>

<div class="ad1"></div>

<div class="ad2"></div>

</body>

</html>


写回答

1回答

好帮手慕夭夭

2019-04-18

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

0

0 学习 · 40143 问题

查看课程