批改状态:不合格
老师批语:请认真完成作业!!!
@charset "utf-8";
/*初始化 reset*/
blockquote,
body,
button,
dd,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
margin: 0;
padding: 0
}
body,
button,
input,
select,
textarea {
font: 14px/1.5 'Microsoft YaHei', \5FAE\8F6F\96C5\9ED1, tahoma, arial, 'Hiragino Sans GB', \5b8b\4f53, sans-serif
}
body, html {
margin: 0 auto;
padding: 0;
font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif, "宋体";
}
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea {
font-size: 100%
}
address,
cite,
dfn,
em,
var,
i {
font-style: normal
}
ol,
ul {
list-style: none
}
a {
text-decoration: none;
color: #553411;
}
a:hover,a:focus{text-decoration: none;}
fieldset,
img {
border: 0;
vertical-align: top;
}
textarea {
resize: none;
}
a,
input,
button,
select,
textarea {
outline: none;
}
a,
button {
cursor: pointer;
}
a,
button {
cursor: pointer;
}
/*清楚浮动*/
.decimal {
font-family: HelveticaNeueLt, 'Microsoft YaHei', SimHei;
font-size: 14px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both;
}
/*解决盒子塌陷问题*/
.clearfix {
clear: both;
}
/*公共样式*/
.tc {
text-align: center!important;
}
.tl{
text-align: left!important;
}
.tr {
text-align: right!important;
}
.fl {
float: left!important;
}
.fr {
float: right!important;
}
.rlast{
margin-right: 0!important;
}
.ffirst{
margin-left: 0!important;
}
<!--css样式-->
@charset "utf-8";
.header{
width: 1280px;
margin: 0 auto;
margin-bottom: 28px;
}
.top_box{
height:880px;
background-image: url('images/top_pic01.gif');
background-position: right top;
background-repeat: no-repeat;
background-size:100%;
}
.logo{
float: left;
margin-left: 4px;
margin-top: 27px;
}
.header ul{
float: right;
margin-top: 30px;
}
.header ul li{
float: left;
margin-left: 56px;
}
.header ul li a{
color: #fff;
font-weight: bold;
}
.top_text{
width: 1320px;
margin: 0 auto;
margin-top: 128px;
}
.middle_title{
width: 1320px;
margin: 0 auto;
margin-left: -70px;
}
.mid_bg{
width: 100%;
height: 210px;
background-color: #f4f5f9;
position: relative;
margin-top: 274px;
}
.mid_bg ul{
position: absolute;
top: -88px;
left: 50%;
width: 1332px;
margin-left: -666px;
}
.mid_bg ul li{
float: left;
margin-left: 42px;
margin-right: 42px;
box-shadow:0px 4px 20px #f4f4f5;
}
.mid_bg .circle{
position: absolute;
left: 50%;
top:290px;
}
.footer{
width: 1280px;
margin: 0 auto;
margin-top: 470px;
padding: 20px 0;
}
.footer .beian_info{
float: left;
margin-left: 4px;
margin-top: 27px;
color: #d1d1d1;
}
.footer ul{
float: right;
margin-top: 30px;
}
.footer ul li{
float: left;
margin-left: 56px;
}
.footer ul li a{
color: #363636;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>boss在线</title>
<link rel="stylesheet" type="text/css" href="publi.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="top_box">
<div class="header">
<div class="logo"><img src="images/logo.png" width="148"></div>
<ul>
<li><a href="">关于我们</a></li>
<li><a href="">联系方式</a></li>
<div class="clearfix"></div>
</ul>
<div class="clearfix"></div>
</div>
</div>
<div class="middle_title">
<img src="images/middle_pic01.gif">
</div>
<div class="mid_bg">
<ul>
<li><img src="images/content01.jpg" width="360"></li>
<li><img src="images/content02.jpg" width="360"></li>
<li><img src="images/content03.jpg" width="360"></li>
</ul>
<div class="circle">
<img src="images/circle.png">
</div>
</div>
<div class="footer">
<div class="beian_info">BossOnline All Rights Reserved </div>
<ul>
<li><a href="">Agreement </a></li>
<li><a href="">Privacy</a></li>
<li><a href="">Help</a></li>
<div class="clearfix"></div>
</ul>
<div class="clearfix"></div>
</div>
</body>
</html>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号