请老师看一下我的代码,指点一下写的不好的地方!
来源:2-17 自由编程
KangarooL
2021-02-16 21:07:03
<!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>
</head>
<body>
<!-- Header区域 -->
<div id="header">
<div id="logo">
logo
<ul>
<li>HOME</li>
<li>ABOUT</li>
<li>GALLERY</li>
<li>FACULTY</li>
<li>EVENTS</li>
<li>CONTACT</li>
</ul>
</div>
<div id="links">导航区域</div>
</div>
<!-- Banner区域 -->
<div id="banner">
<div id="banner pictures">banner图片</div>
<div id="banner cover">banner遮罩层</div>
<div id="banner forms">banner表单</div>
</div>
<!-- about区域 -->
<div id="about">
<div id="first part of about">about上半部分</div>
<div id="second part of about">about下半部分</div>
</div>
<!-- 图片混排区域 -->
<div id="pictures and words">
<div id="picture1">
图片1
</div>
<div id="word2">
文字2
</div>
<div id="picture3">
图片3
</div>
<div id="words4">
文字4
</div>
<div id="words5">
文字5
</div>
<div id="picture6">
图片6
</div>
<div id="words7">
文字7
</div>
<div id="picture8">
图片8
</div>
</div>
<!-- Gallery区域 -->
<div id="gallery">
<div id="first part of gallery">gallery上半部分</div>
<div id="second part of gallery">
<dl>
<dt>图片</dt>
<dd>Science Lab</dd>
</dl>
<dl>
<dt>图片</dt>
<dd>Indoor Stadium</dd>
</dl>
<dl>
<dt>图片</dt>
<dd>Transportation</dd>
</dl>
<dl>
<dt>图片</dt>
<dd>Kids Room</dd>
</dl>
<dl>
<dt>图片</dt>
<dd>Meditation Clasees</dd>
</dl>
<dl>
<dt>图片</dt>
<dd>Kids Play Ground</dd>
</dl>
</div>
</div>
<!-- Footer区域 -->
<div id="footer">
<p>©2016 imooc.com 京ICP备13046642号</p>
</div>
</body>
</html>
1回答
同学你好,代码实现效果很棒,不需要优化。继续加油,祝学习愉快!
相似问题