麻烦老师检查一下代码有没有错误?
来源:3-8 自由编程
轩神
2021-01-25 22:55:32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- Header区域 -->
<div class="header">
<!-- 网页的logo 左 -->
<div class="logo">
<img src="images/logo.png" alt="这是logo">
</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>
</div>
<!-- Banner区域 -->
<div class="banner">
<!-- 图片 -->
<div class="b-pic">
<img src="images/banner3.jpg" alt="图片">
</div>
<!-- 遮罩层 -->
<div class="mask">banner遮罩层</div>
<!-- 表单 -->
<div class="form">banner表单</div>
</div>
<!-- About区域 -->
<div class="About">
<!-- 标题和简短描述 -->
<div class="about-title">
<h2>About</h2>
<p>分割线</P>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p>
</div>
<!-- 详细描述区 -->
<div class="about-desrciption">
<h3>A WORD<br /> ABOUT US</h3>
<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>
<img src="images/bb3.jpg" alt="">
<p>70000</p>
<p>分割线<br />Student</p>
<p>600</p>
<p>分割线<br />Faculty</p>
</div>
</div>
<!-- 图文混排区域 -->
<div class="word-img">
<div class="img-1"><img src="images/b1.jpg" alt="图片"></div>
<div class="word-2">
<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>
<p>EXPLORE</p>
</div>
<div class="img-3"><img src="images/b2.jpg" alt="图片"></div>
<div class="word-4">
<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>
<p>EXPLORE</p>
</div>
<div class="word-5">
<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>
<p>EXPLORE</p>
</div>
<div class="img-6"><img src="images/b3.jpg" alt="图片"></div>
<div class="word-7">
<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>
<p>EXPLORE</p>
</div>
<div class="img-8"><img src="images/b4.jpg" alt="图片"></div>
</div>
<!-- Gallery区域 -->
<div class="Gallery">
<!-- 标题 -->
<div class="G-title">
<h2>Gallery</h2>
<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 class="G-description">
<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区域 -->
<div class="footer">
<p> ©2016imooc.com 京ICP备13046642号</p>
</div>
</body>
</html>
1回答
同学您好,about区域的内容可以使用div标签再嵌套一下,结构更加清晰,如下:
其他地方实现的不错,继续加油,祝学习愉快~
相似问题