老师 麻烦检查一下作业 谢谢啦

老师 麻烦检查一下作业 谢谢啦

<!-- 网页头部 -->
    <header>
        <!-- logo -->
        <div class="logo">
            <a href=""><img src="images/logo.png"></a>
        </div>
        <!-- 导航条-->
        <div class="nav">
            <ul>
                <li>HOME</li>
                <li>ABOUT</li>
                <li>GALLERY</li>
                <li>FACULTY</li>
                <li>EVENTS</li>
                <li>CONTACT</li>
            </ul>
        </div>
    </header>

    <!-- 网页横幅 -->
    <section class="banner">
        <!-- 放大的图片 -->
        <a href=""><img src="images/banner3.jpg"></a>
        <!-- 遮罩层 -->
        <div class="banner-mask">banner遮罩层</div>
        <!-- 表单 -->
        <div class="banner-form">banner表单</div>
    </section>
<!-- 网页的主要内容 -->
    <section class="content">
        <!-- 网页about区域 -->
        <div class="about">
            <div class="up">
                <!-- about上半部分 -->
                <h1>ABOUT</h1>
                <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.
                <div class="titile">
                    <h1>WORD<br>ABOUT US</h1>
                </div>
                <div class="jianduanmiaoshu">
                    Praesent dignissim viverra est, sed bibendum ligula congue non. Sed ac nisl et felis gravida commodo? Suspendisse eget ullamcorper ipsum. Suspendisse diam amet.
                </div>
            </div>
            <!-- about下半部分 -->
            <div class="down">
                <P>
                    EXPLORE<br>
                    <img src="IMAGES/bb3.jpg">
                </P>
                <p>70000</p>
                <p>
                    分割线<br>
                    Students
                </p>
                <p>600</p>
            </div>
        </div>
<!-- 网页图文混排区域 -->
        <div class="image and text">
            分割线<br>
            Faculty
            <div class="image1">
                <a href=""><img src="images/b1.jpg"></a>
            </div>
            <div class="text2">
                <h1>Library</h1>
                <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>
            </div>
            <div class="image3">
                EXPLORE<br>
                <a href=""><img src="images/b2.jpg"></a>
            </div>
            <div class="text4">
                <h1>Library</h1>
                <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>
            </div>
            <div class="text5">
                <h1>Library</h1>
                <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>
            </div>
            <div class="image6">
                EXPLORE<br>
                <a href=""><img src="images/b3.jpg"></a>
            </div>
            <div class="text7">
                <h1>Library</h1>
                <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>
            </div>
            <div class="image8">
                EXPLORE<br>
                <a href=""><img src="images/b4.jpg"></a>
            </div>
        </div>

        <!-- 网页Gallery区域 -->
        <div class="gallery">
            <!-- gallery上部分 -->
            <div class="title">
                <h1>GALLERY</h1>
            </div>
            <div class="bjianduan">
                <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.
            </div>
            <!-- gallery下部分 -->
            <div class="bxiangxi">
                <dl>
                    <dt>
                        <img src="images/03-01.jpg">
                    </dt>
                    <dd>Science Lab</dd>
                </dl>
                <dl>
                    <dt>
                        <img src="images/03-02.jpg">
                    </dt>
                    <dd>Indoor Stadium</dd>
                </dl>
                <dl>
                    <dt>
                        <img src="images/03-03.jpg">
                    </dt>
                    <dd>Transportation</dd>
                </dl>
                <dl>
                    <dt>
                        <img src="images/03-04.jpg">
                    </dt>
                    <dd>Kids Room</dd>
                </dl>
                <dl>
                    <dt>
                        <img src="images/03-05.jpg">
                    </dt>
                    <dd>Meditation Classes</dd>
                </dl>
                <dl>
                    <dt>
                        <img src="images/03-06.jpg">
                    </dt>
                    <dd>Kid Play Ground</dd>
                </dl>
            </div>
        </div>
    </section>
<!-- 网页页脚 -->
    <footer">
        <p>&copy;2016imooc.com京ICP备13046642</p>
    </footer>

正在回答 回答被采纳积分+1

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

1回答
好帮手慕慕子 2022-08-08 09:57:28

同学你好,代码中存在的问题解答如下:

1、可以直接书写img标签,去掉外层的a标签,简化代码

https://img1.sycdn.imooc.com//climg/62f06b2909718b7c06340187.jpg

2、about区域下半部分区域结构划分不对,建议参考下图标注修改:

https://img1.sycdn.imooc.com//climg/62f06c860964806917290870.jpg

https://img1.sycdn.imooc.com//climg/62f06c93099144f206130154.jpg

3、图文混排区域包裹图片的a标签可以去掉,以一个为例:

https://img1.sycdn.imooc.com//climg/62f06caf092d37d105920139.jpg

4、图文混排区域中的按钮EXPLORE与文字内容在一个盒子中,而不是和图片一起,建议修改:

https://img1.sycdn.imooc.com//climg/62f06d51099e923e11650868.jpg

5、footer标签中多写了一个引号,不符合代码规范,建议去掉,如下:

https://img1.sycdn.imooc.com//climg/62f06d8709c855cf04110193.jpg

祝学习愉快~

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

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

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

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

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

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