请老师检查一下代码,有没有可以补充的
css相关代码:
* {
margin: 0;
padding: 0;
}
/* 去掉所有ul,ol小圆点 */
ul,ol {
list-style: none;
}
/* 去掉所有超级链接的下划线 */
a {
text-decoration: none;
}
/* 使用继承性,给body标签设置字体 */
body {
font: normal 14px/25px '微软雅黑';
}
/* header */
header {
width: 100%;
height: 80px;
background-color: #07cbc9;
}
header .head {
width: 1200px;
height: 80px;
margin: 0 auto;
/* 清除浮动 */
overflow: hidden;
}
header .head .logo {
float: left;
padding-top: 16px;
}
header .head .nav {
float: right;
}
header .head .nav ul {
width: 600px;
height: 80px;
}
header .head .nav ul li {
float: left;
padding-left: 20px;
/* 垂直居中-行高等于盒子高 */
line-height: 80px;
}
header .head .nav ul li a {
display: block;
height: 80px;
font-size: 16px;
color: white;
}
html相关代码:
<!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>Career Bulider</title>
<meta name="Description" content=" ">
<meta name="Keywords" content=" ">
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<!-- Header区域 -->
<header>
<div class="head">
<!-- logo -->
<div class="logo">
<img src="images/logo.png" alt="">
</div>
<!-- nav -->
<nav class="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>
</div>
</header>
<!-- Banner区域 -->
<section class="banner">
<!-- banner图片 -->
<div class="banner_image">
<img src="images/banner3.jpg" alt="">
</div>
<!-- banner遮罩层 -->
<div class="banner_cover">banner遮罩层</div>
<!-- banner表单 -->
<div class="banner_form">
<form action="" method="POST">
<input type="text" placeholder="your Name">
<input type="text" placeholder="your Phone">
<input type="email" placeholder="your Email">
<textarea placeholder="Write Your Comment Here"></textarea>
<p><input type="submit" value="SEND MESSAGE"></p>
</form>
</div>
</section>
<!-- content区域 -->
<section class="content">
<!-- About区域 -->
<section class="about">
<!-- About区域标题和简短描述 -->
<div class="about_header">
<h2>About</h2>
<div>分割线</div>
<div>
<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>
<!-- About区域详细描述 -->
<div class="about_details">
<h3>A WORD ABOUT US</h3>
<!-- 文字描述 -->
<div>
<div>
<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>
</div>
<div>
EXPLORE
</div>
</div>
<!-- 图片描述 -->
<div>
<img src="images/bb3.jpg" alt="">
</div>
<div>
<h3>70000</h3>
<div>分割线</div>
<div>Sdudents</div>
</div>
<div>
<h3>600</h3>
<div>分割线</div>
<div>Faculty</div>
</div>
</div>
</section>
<!-- 图文混排区域 -->
<section class="images_passages">
<!-- 图1 -->
<div>
<img src="images/b1.jpg" alt="">
</div>
<!-- 文2 -->
<div>
<h3>Library</h3>
<div>
<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>
EXPLORE
</div>
</div>
<!-- 图3 -->
<div>
<img src="images/b2.jpg" alt="">
</div>
<!-- 文4 -->
<div>
<h3>Computer Lab</h3>
<div>
<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>
EXPLORE
</div>
</div>
<!-- 文5 -->
<div>
<h3>Conference Hall</h3>
<div>
<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>
EXPLORE
</div>
</div>
<!-- 图6 -->
<div>
<img src="images/b3.jpg" alt="">
</div>
<!-- 文7 -->
<div>
<h3>Play Ground</h3>
<div>
<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>
EXPLORE
</div>
</div>
<!-- 图8 -->
<div>
<img src="images/b4.jpg" alt="">
</div>
</section>
<!-- Gallery区域 -->
<section class="gallery">
<!-- Gallery区域简短描述 -->
<div class="gallery_header">
<h2>GALLERY</h2>
<div>分割线</div>
<div>
<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, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<!-- Gallery区域详细信息 -->
<div class="gallery_details">
<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>
</section>
</section>
<!-- Footer区域 -->
<footer>
<p>©2016 imooc.com 京ICP备13046642号</p>
</footer>
</body>
</html>
12
收起
正在回答
1回答
同学你好,代码实现很正确,没有需要补充的,继续加油,祝学习愉快!
相似问题
登录后可查看更多问答,登录/注册
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星