请问这样子对吗

来源:2-7 编程练习

慕雪9046520

2020-04-14 09:54:24

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

        }

        .container{

            width: 1000px;

            margin: 0 auto;

        }

        .container .title{

            text-align: center;

            font-size: 30px;

            font-weight: bold;

            padding: 30px 0;

        }

        .container .pic-content img{

            width: 400px;

        }

        .container .pic-content dl{

            float: left;

            width: 400px;

            margin: 0 50px;

        }

        .clear{

            clear: both;

        }

    </style>

</head>

<body>

    <div class="container">

        <div class="title">ENJOY THE LIFE</div>

        <div class="pic-content">

            <dl class="one">

                <dt><img src="http://climg.mukewang.com/58f829090001a4b504260240.jpg" alt="">

                    <dd>

                        As the number of people using the Internet as an integral part 

                         of their daily life grows, it is inevitable that the number of 

                         Internet Scams will grow. Unfortunately there are many forms of

                          scams but in this article we will look at three of the most prominent.

                    </dd>

                </dt>

            </dl>

            <dl class="two">

                <dt><img src="http://climg.mukewang.com/58f8290f0001558804260240.jpg" alt="">

                    <dd>

                        As the number of people using the Internet as an integral part 

                         of their daily life grows, it is inevitable that the number of 

                         Internet Scams will grow. Unfortunately there are many forms of

                          scams but in this article we will look at three of the 

                    </dd>

                </dt>

            </dl>

            <div class="clear"></div>

        </div>

    </div>

</body>

</html>


写回答

1回答

好帮手慕慕子

2020-04-14

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

0

0 学习 · 40143 问题

查看课程