老师检查代码

来源:4-3 编程练习

可怜虫小姜

2020-05-26 21:37:11

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title></title>

    <style type="text/css">

        *{

            padding:0;

            margin: 0;

        }

        .bg{

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

            width: 100%;

            height: 4033px;

            position: relative;

        }

        .le{

            position: fixed;

            width: auto;

            height: 364px;

            z-index: 999;

            top:50%;

            right: 0;

            margin-top: -182px;

        }

        .ri{

            position: fixed;

            width: auto;

            height: 364px;

            z-index: 999;

            top:50%;

            left: 0;

            margin-top: -182px;

        }


    </style>

</head>

<body>

    <div class="bg">

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

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

    </div>

</body>

</html>


写回答

1回答

好帮手慕小鱼

2020-05-27

同学你好,代码是正确的。继续加油,祝学习愉快~

0

0 学习 · 40143 问题

查看课程