请老师帮忙检查一下代码

来源:3-8 自由编程

廖可爱bongbong

2021-04-21 15:51:00

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

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

    <title>Career Builder</title>

    <meta name="Keywords" content="Library,Gallery">

    <meta name="Description" content="Career,builder">

</head>

<body>

    <!-- Header区域 -->

    <header>

        <!-- logo -->

        <div class="logo">

            <img src="images/logo.png" >

            <ul>

                <li>HOME</li>

                <li>ABOUT</li>

                <li>GALLERY</li>

                <li>FACULTY</li>

                <li>EVENTS</li>

                <li>CONTACT</li>

            </ul>

        </div>

    </header>


    <!-- Banner区域 -->

    <div class="banner">

        <!-- banner图片 -->

        <img src="images/banner3.jpg" >


        <!-- banner遮罩层 -->

        <div class="banner-mask">banner遮罩层</div>


        <!-- banner表单 -->

        <div class="banner-form">banner表单</div>

    </div>

    

    <!-- About区域 -->

    <div class="about">

        <h3>ABOUT</h3>

        <p>分割线</p>

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

           <br>

           Lorem Ipsum has been the industry's standard dummy

           <br>

           text ever since the 1500s.</p>

        <!-- about上部分 -->

        <div class="about-top">about上部分</div>

        <h4>A WORD 

            <br>

            ABOUT US</h4>

        <p>Praesent dignissim viverra est, sed bibendum ligula congue non. Sed ac nisl et felis gravida commodo? Suspendisse eget ullamcorper ipsum. Suspendisse diam amet.</p>

        <p>EXPLORE</p>

        <span><img src="images/bb3.jpg"></span>  

             

        <!-- about下部分 -->

        <div class="about-lower">about下部分</div>

        <p>70000</p>

        <p>分割线

            <br>

            <span>students</span>

        </p>

        <p>600</p>

        <p>分割线

            <br>

            <span>faclty</span>

        </p>

    </div>

 

    <!-- 图文混排区域 -->

    <div class="mix-area">

        <!-- 图片1 -->

        <div class="picture-1">

            <img src="images/b1.jpg">

        </div>


        <!-- 文字2 -->

        <div class="word-2">

            <h4>Library</h4>

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

            <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

            </p>

            <p>EXPLORE</p>

        </div>


        <!-- 图片3 -->

        <div class="picture-3">

            <img src="images/b2.jpg">

        </div>


        <!-- 文字4 -->

        <div class="word-4">

        <h4>Library</h4>

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

            <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

            </p>

            <p>EXPLORE</p>

        </div>    


        <!-- 图片5 -->

        <div class="picture-5">

            <img src="images/b3.jpg">

        </div>


        <!-- 文字6 -->

        <div class="word-6">

        <h4>Library</h4>

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

            <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

            </p>

            <p>EXPLORE</p>  

        </div>


        <!-- 图片7 -->

        <div class="picture-7">

            <img src="images/b4.jpg">

        </div>


        <!-- 文字8 -->

        <div class="word-8">

            <h4>Library</h4>

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

            <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

            </p>

            <p>EXPLORE</p>

        </div>

    </div>


    <!-- Gallery区域 -->

    <div class="gallery">


        

        <!-- gallery上部分 -->

        <div class="galleryt-top">

        <h4>GALLERY</h4>

        <p>分割线</p>

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

            <br>

            industry.Lorem Ipsum has been the industry's standard dummy

            <br>

            text ever since the 1500s.</p>

        </div>


        <!-- galleryt下部分 -->

        <div class="gallery-lower">


            <dl>

                <dt>

                    <img src="images/03-01.jpg" alt="">

                </dt>

                <dd>Science Lab</dd>

            </dl>         

            <dl>

                <dt><img src="images/03-02.jpg" alt=""></dt>

                <dd>Indoor Stadium</dd>

            </dl>         

            <dl>

                <dt><img src="images/03-03.jpg" alt=""></dt>

                <dd>Transportation</dd>

            </dl>         

            <dl>

                <dt><img src="images/03-04.jpg" alt=""></dt>

                <dd>Kids Room</dd>

            </dl>         

            <dl>

                <dt><img src="images/03-05.jpg" alt=""></dt>

                <dd>Meditation Classes</dd>

            </dl>         

            <dl>

                <dt><img src="images/03-06.jpg" alt=""></dt>

                <dd>Kids Play Ground</dd>

            </dl>         

        </div>

    </div>


    <!-- Footer区域 -->

    <footer>

        <p>© 2016 imooc.com 京ICP备13046642号</p>

    </footer>



写回答

1回答

好帮手慕慕子

2021-04-21

同学你好,整体思路是对的。有一个地方可以优化一下,about填充内容后,可以将对应的上半部分内容放在about-top这个div下,下半部分内容,放在about-lower这个div下。示例:

http://img.mukewang.com/climg/607fe02c09bb63e908050279.jpg

http://img.mukewang.com/climg/607fe037090ac91d11870472.jpg

祝学习愉快~

0

0 学习 · 15276 问题

查看课程