请老师帮忙检查下代码,谢谢

来源:4-4 自由编程

不厌_

2021-05-22 17:48:49

CSS代码如下:

相关代码:

* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
ul,ol {
list-style: none;
}
body {
font: normal 14px/25px "微软雅黑";
}
header {
width: 100%;
height: 80px;
background-color: #07cbc9;
}
header .header-top {
width: 1200px;
height: 80px;
margin: 0px auto;
}
header .header-top .logo {
width: 260px;
height: 48px;
float: left;
padding-top: 16px;
padding-bottom: 16px;
}
header .header-top .logo img {
width: 260px;
height: 48px;
}
header .header-top .main-nav {
height: 80px;
float: right;
}
header .header-top .main-nav ul {
height: 80px;
}
header .header-top .main-nav ul li {
width: 100px;
height: 80px;
float: left;
margin-right: 20px;
text-align: center;
line-height: 80px;
}
header .header-top .main-nav ul li a{
display: block;
width: 100px;
height: 80px;
color: white;
font-size: 16px;
}
header .header-top .main-nav ul li a:hover {
background-color: orange;
}

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">
<meta name="Keywoeds" content="#">
<meta name="Description" content="#">
<title>Career-Builder</title>
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<!-- 网页头部 -->
<header>
<div class="header-top">
<!-- 网页的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>
</div>
</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">
<form action="" method="POST">
<p>
<input type="text" placeholder="your Name">
<input type="text" placeholder="your Phone">
<input type="email" placeholder="your Email">
<textarea cols="30" rows="10" placeholder="Write Your Comment Here"></textarea>
</p>
<p>
<input type="submit" value="SEND MESSAGE">
</p>
</form>
</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-22

同学你好,代码实现很正确,继续加油,祝学习愉快!

0

0 学习 · 15276 问题

查看课程