请老师检查下代码及布局是否合理?

来源:3-8 自由编程

不厌_

2021-05-15 16:02:35

3-8课堂作业

相关代码:

​<!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">
<meta name="Keywoeds" content="#">
<meta name="Description" content="#"">
<title>Career-Builder</title>
</head>
<body>
<!-- 网页头部 -->
<header>
<!-- 网页的LOGO -->
<div class="logo">
<img src="images/logo.png" alt="">
</div>

<!-- 网页的导航 -->
<nav class="main-nav">
<ul>
<li><a href="">HOME</a></li>
<li><a href="">ABOUT</a></li>
<li><a href="">GALLERY</a></li>
<li><a href="">FACULTY</a></li>
<li><a href="">EVENTS</a></li>
<li><a href="">CONTACT</a></li>
</ul>
</nav>
</header>

<!-- 网页的横幅 -->
<section class="banner">
<!-- 网页横幅的图片 -->
<div class="banner-pictures">
<img src="images/banner3.jpg" alt="">
</div>

<!-- 网页横幅的遮罩层 -->
<div class="banner-shade">
banner遮罩层
</div>

<!-- 网页横幅的表单 -->
<div class="banner-sheet">
banner表单
</div>
</section>

<!-- 网页的内容区域 -->
<section class="content">

<!-- 网页的标题和描述区域 -->
<div class="about">
<!-- 标题和简短描述 -->
<div class="about-title-short-description">
<!-- 标题 -->
<div class="about-title">
<h2>ABOUT</h2>
</div>
<!-- 简短描述 -->
<div class="about-short-description">
<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>
</div>

<!-- 详细描述 -->
<div class="about-detailed-description">
<!-- 左部分 -->
<div class="about-left">
<!-- 左边部分标题 -->
<div class="about-left-title">
<h2>A AWORD <br> ABOUT US</h2>
</div>

<!-- 左边部分内容 -->
<div class="about-left-description">
<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>
<a href=""><div class="about-left-description-link">EXPLORE</div></a>
</div>
</div>

<!-- 中部 -->
<div class="about-among">
<img src="images/bb3.jpg" alt="">
</div>

<!-- 右部分 -->
<div class="about-right">
<!-- 右边上部分内容 -->
<div class="about-right-top">
<p>70000</p>
<div>分割线</div>
<div>Students</div>
</div>

<!-- 右边下半部分内容 -->
<div class="about-right-bottom">
<p>600</p>
<div>分割线</div>
<div>Faculty</div>
</div>
</div>
</div>
</div>

<!-- 网页的图文混排区域 -->
<div class="pictures-and-text">
<!-- 第一块内容 -->
<div class="pictures-and-text-one">
<!-- 图片1 -->
<div class="picture1">
<img src="images/b1.jpg" alt="">
</div>

<!-- 文字2 -->
<div class="text2">
<h3>Library</h3>
<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>
<a href=""><div class="pictures-and-text-one-link">EXPLORE</div></a>
</div>
</div>

<!-- 第二块内容 -->
<div class="pictures-and-text-two">
<!-- 图片3 -->
<div class="picture3">
<img src="images/b2.jpg" alt="">
</div>

<!-- 文字4 -->
<div class="text4">
<h3>Library</h3>
<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>
<a href=""><div class="pictures-and-text-two-link">EXPLORE</div></a>
</div>
</div>

<!-- 第三块内容 -->
<div class="pictures-and-text-three">
<!-- 文字5 -->
<div class="text5">
<h3>Library</h3>
<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>
<a href=""><div class="pictures-and-text-three-link">EXPLORE</div></a>
</div>

<!-- 图片6 -->
<div class="picture6">
<img src="images/b3.jpg" alt="">
</div>
</div>

<!-- 第四块内容 -->
<div class="pictures-and-text-four">
<!-- 文字7 -->
<div class="text7">
<h3>Library</h3>
<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>
<a href=""><div class="pictures-and-text-four-link">EXPLORE</div></a>
</div>

<!-- 图片8 -->
<div class="picture8">
<img src="images/b4.jpg" alt="">
</div>
</div>
</div>

<!-- 网页的展示区 -->
<div class="gallery">
<!-- 标题和简短描述 -->
<div class="gallery-title-short-description">
<!-- GALLERY标题 -->
<div class="gallery-title">
<h2>GALLERY</h2>
</div>

<!-- 简短描述 -->
<div class="gallery-short-description">
<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>
</div>

<!-- 详细信息区 -->
<div class="detailed-information">
<!-- 第一块内容 -->
<div class="detailed-information-one">
<dl>
<dt><img src="images/03-01.jpg" alt=""></dt>
<dd>Science Lab</dd>
</dl>
</div>

<!-- 第二块内容 -->
<div class="detailed-information-two">
<dl>
<dt><img src="images/03-02.jpg" alt=""></dt>
<dd>Indoor Stadium</dd>
</dl>
</div>

<!-- 第三块内容 -->
<div class="detailed-information-three">
<dl>
<dt><img src="images/03-03.jpg" alt=""></dt>
<dd>Transportation</dd>
</dl>
</div>

<!-- 第四块内容 -->
<div class="detailed-information-four">
<dl>
<dt><img src="images/03-04.jpg" alt=""></dt>
<dd>Kids Room</dd>
</dl>
</div>

<!-- 第五块内容 -->
<div class="detailed-information-five">
<dl>
<dt><img src="images/03-05.jpg" alt=""></dt>
<dd>Meditation Classes</dd>
</dl>
</div>

<!-- 第六块内容 -->
<div class="detailed-information-five">
<dl>
<dt><img src="images/03-06.jpg" alt=""></dt>
<dd>Kids Play Ground</dd>
</dl>
</div>

</div>
</div>
</section>

<!-- 网页的页脚 -->
<footer>
<p>&copy;2016 imooc.com 京ICP备13046642号</p>
</footer>
</body>
</html>


写回答

1回答

好帮手慕然然

2021-05-15

同学你好,代码布局很合理,不过代码中有一个小细节建议优化一下,如图

http://img.mukewang.com/climg/609f822909af8df609690264.jpg

祝学习愉快!

0

0 学习 · 15276 问题

查看课程