请老师帮我批改一下作业

请老师帮我批改一下作业

HTML代码:

<!DOCTYPE html>

<html lang="en">


<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <link rel="stylesheet" href="css.css">

</head>


<body>

    <div class="header">

        <h1>GALLERY</h1>

        <div class="logo"></div>

        <p>Lorem Ipsum is simply dummy text of the printing and typesetting</p>

        <p>industry.Lorem Ipsum has been the industry's standard dummy</p>

        <p>text ever since the 1500s.</p>

    </div>


    <div class="content">

        <div class="img">

            <img src="03-01.jpg" alt="" class="margin-left">

            <dl class="margin-left">

                <dd>Science Lab</dd>

            </dl>

        </div>



        <div class="img">

            <img src="03-02.jpg" alt="" class="margin-left40px">

            <dl class="margin-left40px">

                <dd>Indoor Stadium</dd>

            </dl>

        </div>



        <div class="img">

            <img src="03-03.jpg" alt="" class="margin-left">

            <dl class="margin-left">

                <dd>Transoprtation</dd>

            </dl>

        </div>



        <div class="img">

            <img src="03-04.jpg" alt="" class="margin-left">

            <dl class="margin-left">

                <dd>Kids Room</dd>

            </dl>

        </div>



        <div class="img">

            <img src="03-05.jpg" alt="" class="margin-left40px">

            <dl class="margin-left40px">

                <dd>Meditation Classes</dd>

            </dl>

        </div>



        <div class="img">

            <img src="03-06.jpg" alt="" class="margin-left">

            <dl class="margin-left">

                <dd>Kids Play Ground</dd>

            </dl>

        </div>

    </div>

</body>


</html>




CSS代码:

*{

    margin0;

    padding0;

}

.header{

    width100%;

}

.header h1{

    margin-top30px;

    font-size32px;

    text-aligncenter;

}

.header .logo{

    width60px;

    height3px;

    background#07cbc9;

    margin10px auto;

}

.header p{

    text-aligncenter;

    colorgray;

    font-size14px;

}



.content{

    width1200px;

    height653px;

    margin0 auto;

}

.content .img{

    width360px;

    height290px;

    floatleft;

    margin-right40px;

    margin-top30px;

    positionrelative;

}

.content .img dl{

    background#000;

    width100%;

    height50px;

    positionabsolute;

    left0;

    bottom0;

}

.content .img dl dd{

    margin-left20px;

    colorwhite;

    line-height50px;

}

.content .img .margin-left{

    margin-left20px;

}

.content .img .margin-left40px{

    margin-left20px;

}



正在回答

登陆购买课程后可参与讨论,去登陆

1回答

同学你好,代码布局以及实现效果很棒。继续加油,祝学习愉快!

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师