2-10作业完成 请老师指导一下,谢谢
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/rrr.css">
<title>网页布局</title>
<style>
body{
text-align: center;
}
.header{
width: 100%;
height: 80px;
background-color: #07cbc9;
overflow: hidden;
position: fixed;
}
.header img{
width:300px;
height:45px;
padding: left;
padding-top: 18px;
padding-left: 100px;
}
a{
display: block;
line-height: 80px;
text-decoration: none;
color: #fff;
text-align: center;
}
a:hover{
background-color: brown;
}
.header .logo{
float:left;
}
.header .nav{
float:right;
}
.header .nav ul{
padding-left: 100px;
padding-right:10px;
}
.header .nav ul li{
float:left;
width:100px;
height:200px;
line-height:80px;
font-weight:bolder;
color:#FFFEFE;
}
.main .top{
width:100%;
height:100%;
}
.main .banner-top{
width:510px;
height:600px;
position: absolute; /*绝对定位*/
top:340px;
margin-top:-100;
z-index: 2;
right: 50%;
margin-right: -250px;
overflow:hidden;
}
.main .banner{
position: absolute;
top:100px;
left:0;
background-color: black;
width:100%;
height:700px;
opacity: .5;
}
input{
width:505px;
height:39px;
margin: 10px auto;
border:2px solid #808080;
}
button{
width: 123px;
height:43px;
margin: 10px auto;
border: 2px solid #808080;
margin-left: 155px;
}
button:hover,input:hover{
border:2px solid #07cbc9;
}
.middle .title-1{
font-size: 20px;
padding-top: 40px;
padding-bottom: 10px;
font-weight: bold;
}
.middle .duanlluo{
font-size: 22px;
color: #808080;
padding-top:8px;
padding-bottom:30px;
}
.fudong{
float: left;
}
.mmm{
width: 1000px;
margin: 0 auto;
position: relative;/*绝对定位*/
overflow: hidden;
margin-bottom: 50px;
}
.mmm .mleft{
float: left;
}
.mmm .mleft .wenzi{
font-weight: bold;
width: 140px;
font-size: 22px;
}
.mmm .mleft .qqq{
position: absolute;
width: 370px;
height: 246px;
float: left;
border: 1px solid #808080;
padding-top: 100px;
padding-left: 20px;
background: rgba(255, 255, 255, .4);
}
.mmm .mcenter{
float: left;
width:568px;
height: 380px;
margin-left: 10px;
}
.mmm .mright {
float: right;
width: 180px;
text-align:center;
}
.mmm .mright .mright-top,.mright1{
border: 1px solid #2dd3d1;
padding: 40px 0;
}
.mmm .mright .mright1{
margin-top: 20px
}
.mmm .mright .mright-top,.mright1 .p1{
font-size: 24px;
}
/* ddsdsad*/
.t8{
width: 100%;
max-height: 600px;
overflow: hidden;
padding-bottom: 40px;
}
.img1,.t8ing{
width: 25%;
height:300px;
float: left;
background-color: #07cbc9
}
.t8 .t8ing dl{
padding-top: 20px;
padding-left: 20px;
}
.t8 .t8ing dt{
font-size: 20px;
font-weight:bold;
color:#fff;
padding-bottom: 20px;
}
.t8 .t8ing .dd2{
padding-bottom: 20px;
color:#fff;
}
.t8 .t8ing .dd3{
color:#acd9d9;
}
.button3{
background-color: #000;
font-weight: bold;
color: #fff;
margin: 100px auto;
margin-left: 25%;
}
/*图文3*/
.t9{/* 大盒子 */
width: 1128px;
margin: 0 auto;
overflow: hidden;
}
.t9 .t9ing{
float: left;
padding: 8px;
}
.t9 .t9ing .img2{
display: block;
}
.t9 .t9ing .ww{
width: 100%;
height: 50px;
line-height: 50px;
text-indent:20px;
background-color: #000;
color: #fff;
margin: 0;
}
/*页脚*/
.footer{
width: 100%;
height:80px;
background-color: #07cbc9;
}
.footer .foot{
width: 100%;
height: 80px;
line-height: 80px;
text-align: center;
}
</style>
</head>
<body>
<!--头部 -->
<div class="header">
<div class="logo"><a href="" class="
ee"><img src="images\logo.png" alt="logo" ></a> </div>
<div 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>
</div>
</div>
<!-- 主体 -->
<div class="main">
<div class="top">
<img src="images\banner3.jpg" alt="">
</div>
<div class="banner"></div>
<div class="banner-top" >
<form action="" class="form" >
<input style="background:none;" type="text" name="user" placeholder="your Name"><br/>
<input style="background:none;" type="txet" name="phone" placeholder="your Phone"><br/>
<input style="background:none;" type="text" name="email" placeholder="your Email" ><br/>
<input style="background:none;" type="text" name="here" placeholder="Write Your Comment Here"><br/>
<input style="background:none;" type="text" name="neirong" placeholder="Write Your Comment Here">
<button style="background:none; border: 0px;">SEND MESSAGE</button>
</form>
</div>
</div>
<div class="middle">
<div class="title-1">ABOUT</div>
<p class="p1" style="color:#2dd3d1;">——</p>
<div class="duanlluo"><p> LoremIpsum is simplydummytextiofthe printing and typesetting<br/>
industryLoremlpsumhasbeentheindustry's standard dummy<br/>
texteversincethe15oos.</p>
</div>
</div>
<div class="mmm">
<div class="mleft ">
<p class="wenzi">A WORD<br>ABOUT US</p>
<p class="qqq">LoremIpsum is simplydummytextiofthe printing and typesetting<br/>
industryLoremlpsumhasbeentheindustry's standard dummy <button>EXPLORE</button>
</p>
</div>
<div class="mcenter "><img src="images\bb3.jpg" alt=""></div>
<div class="mright ">
<div class="mright-top">
<p class="p1">70000</p>
<p class="p1" style="color:#2dd3d1;">——</p>
<p>Students</p>
</div>
<div class="mright1">
<p class="p1">600</p>
<p class="p1" style="color:#2dd3d1;">——</p>
<p>Faculy</p>
</div>
</div>
</div>
<!--图文混排2-->
<div class="t8">
<div><img class="img1" src="images\b1.jpg" ></div>
<div class="t8ing">
<dl>
<dt>Library</dt>
<dd class="dd2">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<dd class="dd3">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<button class="button3">EXPLORE</button>
</dl>
</div>
<div><img class="img1" src="images\b2.jpg" ></div>
<div class="t8ing">
<dl>
<dt>Library</dt>
<dd class="dd2">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<dd class="dd3"> Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<button class="button3">EXPLORE</button>
</dl></div>
<div class="t8ing">
<dl>
<dt>Library</dt>
<dd class="dd2">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<dd class="dd3">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<button class="button3">EXPLORE</button>
</dl>
</div>
<div><img class="img1" src="images\b3.jpg" ></div>
<div class="t8ing">
<dl>
<dt>Library</dt>
<dd class="dd2">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<dd class="dd3">Lorem Ipsum is siply dummytext of the<br/>printing and typesetting industry</dd>
<button class="button3">EXPLORE</button>
</dl>
</div>
<div><img class="img1" src="images\b4.jpg" ></div>
</div>
</div>
<!-- 图文3-->
<div class="t9">
<div class="t9ing">
<img class="img2" src="images\03-01.jpg">
<p class="ww">SCINCE LAB</p>
</div>
<div class="t9ing">
<img class="img2" src="images\03-02.jpg">
<p class="ww">SCINCE LAB</p>
</div>
<div class="t9ing">
<img class="img2" src="images\03-03.jpg">
<p class="ww">SCINCE LAB</p>
</div>
<div class="t9ing">
<img class="img2" src="images\03-04.jpg">
<p class="ww">SCINCE LAB</p>
</div>
<div class="t9ing">
<img class="img2" src="images\03-05.jpg">
<p class="ww">SCINCE LAB</p>
</div>
<div class="t9ing">
<img class="img2" src="images\03-06.jpg">
<p class="ww">SCINCE LAB</p>
</div>
</div>
<!-- 页脚 -->
<div class="footer">
<p class="foot">2016 imooc.com 惊ICP236565-号</p>
</div>
</body>
</html>
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星