这样子对吗

来源:4-3 编程练习

慕雪9046520

2020-04-09 10:16:16

<!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>

        *{

            margin: 0;

            padding: 0;

        }

        .page{

            width: 100%;

            height: 4033px;

            background: url(http://climg.mukewang.com/59c9f7ce0001839219034033.png) top center no-repeat;

        }

        .pic1{

            width: 224px;

            height: 364px;

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

            position: fixed;

            top: 50%;

            left: 0;

            margin-top: -182px;

        }

        .pic2{

            width: 224px;

            height: 364px;

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

            position: fixed;

            top: 50%;

            right: 0;

            margin-top: -182px;

        }

    </style>

</head>

<body>

    <div class="page">

        <div class="pic1"></div>

        <div class="pic2"></div>

    </div>

</body>

</html>


写回答

1回答

好帮手慕久久

2020-04-09

同学你好,效果正确,很棒,祝学习愉快!

0

0 学习 · 40143 问题

查看课程

相似问题