<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>百度一下,你就知道</title>
<link href="css/index.css" rel="stylesheet">
</head>
<body>
<!--頭部-->
<div id="header">
<a target="blank">糯米</a>
<a href="#">新聞</a>
<a href="#">hao123</a>
<a href="#">地圖</a>
<a href="#">視頻</a>
<a href="#">貼吧</a>
<a href="#" class="no-weight">登錄</a>
<a href="#" class="no-weight">設(shè)置</a>
<a href="#" class="more-product">更多產(chǎn)品</a>
</div>
<!--中間內(nèi)容-->
<div id="content">
<div class="content-top">
<img src="imgs/logo_white_ee663702.png" alt="百度的logo" />
</div>
<div class="content-bottom">
<input type="text">
<a href="#">百度一下</a>
</div>
<div class="content-img">
<a href="#"><img src="imgs/d_1.png"></a>
<a href="#"><img src="imgs/d_2.png"></a>
<a href="#"><img src="imgs/d_3.png"></a>
<a href="#"><img src="imgs/d_4.png"></a>
</div>
<div class="content-img">
<a href="#"><img src="imgs/d_5.png"></a>
<a href="#"><img src="imgs/d_6.png"></a>
<a href="#"><img src="imgs/d_7.png"></a>
<a href="#"><img src="imgs/d_8.png"></a>
</div>
</div>
<!--尾部-->
<div id="footer">
<div class="footer-top">
<a href="#">把百度設(shè)為主頁(yè)</a>
<a href="#">關(guān)于百度</a>
<a href="#">About Baidu</a>
</div>
<div class="footer-bottom">
?2015 Baidu <a href="#">使用百度前必讀</a> 意見(jiàn)反饋 京ICP證030173號(hào)
<img src="imgs/copy_rignt_24.png">
</div>
</div>
</body>
</html>
*{
padding: 0;
margin: 0;
}
a{
color: black;
}
body{
background: url("../imgs/bg.jpg");
background-size: cover;
}
/*頭部*/
#header{
background-color: rgba(255, 255, 255, 0.3);
/*右對(duì)齊*/
text-align: right;
height: 38px;
line-height: 38px;
/*外邊距*/
margin: 0 0 30px;
}
#header a{
margin-right: 8px;
/*加粗*/
font-weight: bold;
font-family: Arial;
font-size: 15px;
color: white;
}
#header a.no-weight{
font-weight: normal;
}
#header a.more-product{
background-color: #3385ff;
color: white;
/*去處下劃線(xiàn)*/
text-decoration: none;
/*設(shè)置內(nèi)邊距*/
padding: 5px;
}
/*中間內(nèi)容*/
#content{
/*background-color: green;*/
}
.content-top{
text-align: center;
}
.content-top img{
width: 270px;
}
.content-bottom{
background-color: red;
width: 600px;
height: 38px;
/*水平居中*/
margin:10px auto 30px;
}
.content-bottom input{
width: 500px;
height: 38px;
border:1px solid #dddddd;
/*向內(nèi)擴(kuò)展*/
box-sizing: border-box;
padding-left: 8px;
font-size: 15px;
}
.content-bottom input:focus{
outline: none;
border:1px solid #3385ff;
}
.content-bottom a{
background-color: #3385ff;
/*改變標(biāo)簽的類(lèi)型*/
display: inline-block;
width: 100px;
height: 38px;
/*浮動(dòng)*/
float: right;
/*水平垂直居中*/
text-align: center;
line-height: 38px;
color: white;
/*去處下劃線(xiàn)*/
text-decoration: none;
}
.content-img{
text-align: center;
margin-bottom: 10px;
}
.content-img img{
width: 120px;
margin: 0 5px;
/*圓角*/
border-radius: 5px;
box-shadow: 0px 0px 50px gray;
}
.content-img img:hover{
/*不透明度*/
opacity: 0.5;
}
/*尾部*/
#footer{
/*background-color: purple;*/
/*定位*/
position: fixed;
bottom: 0;
width: 100%;
padding: 50px 0;
text-align: center;
font-size: 13px;
}
.footer-top{
margin-bottom: 8px;
}
.footer-top a{
margin: 0 5px;
color: darkgray;
}
.footer-bottom{
color: darkgray;
}
.footer-bottom a{
color: darkgray;
}
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀(guān)點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。