這篇文章主要介紹如何使用div+css實現(xiàn)網(wǎng)站首頁,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)!專注于網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、小程序開發(fā)、集團企業(yè)網(wǎng)站建設(shè)等服務(wù)項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了松山免費建站歡迎大家使用!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>叮咚網(wǎng)首頁</title>
<!--
<link href="叮咚網(wǎng)首頁.css" rel="stylesheet" type="text/css"/>
-->
<style type="text/css">
.main{
width:100%;
height:2010px;
border:1px solid #000;
text-decoration: none;
}
.top{
width:100%;
height:52px;
border:1px solid #000;
}
.downMenu{
width:100%;
height:30px;
font:normal normal 20px "宋體";
color:#fff;
background-color: #000000;
}
#search{
margin-left:520px;
}
a{
text-decoration: none;
}
#img1{
margin-left:330px;
}
#logo{
font:normal normal 20px "宋體";
padding-bottom: 5px;
}
#d{
padding-bottom:30px;
margin-left:290px;
}
a:link{
font-size: 20px;
color:aquamarine;
}
a:visited{
color:darkgray;
}
a:hover{
color:#FFFFFF;
}
a:active{
color:cadetblue;
}
.c{
margin-left:10px;
}
#img7{
width: 100%;
}
.commodity{
font:normal bold 40px "新宋體";
}
.bottom{
text-align: center;
}
#img5{
width:100%;
height:80px;
}
.img2{
float:left;
}
.img3{
float:left;
margin-left:40px;
padding-right: 30px;
}
.hi1{
float:left;
margin-left:50px;
padding-top:60px;
text-align:center;
}
.hi2{
float:left;
margin-left:50px;
padding-top:20px;
text-align:center;
}
</style>
</head> <body> <div class="main"> <div class="top"> <div id="logo"> <img src="img/logo.gif" title="叮咚網(wǎng)logo" alt="logo"></img> <img src="img/header.png" title="img1" alt="img1" id="img1"></img> <a href="登錄.html" target="_blank" id="d"><font color="darkcyan">登錄</font></a> <a href="注冊.html" target="_blank"><font color="darkcyan">注冊</font></a> <a href="購物車.html" target="_blank"><font color="darkcyan">購物車</font></a> </div> </div> <div class="downMenu"> <a href="#" target="_blank">首頁</a> <a href="#" target="_blank">手機數(shù)碼</a> <a href="#" target="_blank">電腦辦公</a> <a href="#" target="_blank">學(xué)習用品</a> <a href="#" target="_blank">家具電器</a> <input id="search" type="text" name="search" value="search"> <input type="submit" name="submit" value="submit"> </div> <div class="slideshow"> <img src="img/1.jpg" width="1333px" height="600px"> </div> <div class="commodity"> 熱門商品<img src="img/title2.jpg" class="c"> </div> <div class="hotImg"> <img src="img/big01.jpg" class="img2"> <img src="img/middle01.jpg" class="img3"> <div class="hi1"> <img src="img/small08.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">電飯煲</font><br /> <font face="黑體" color="red" size="3px" align="center">¥299.00</font> </div> <div class="hi1"> <img src="img/small05.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">飲水機</font><br /> <font face="黑體" color="red" size="3px" align="center">¥439.00</font> </div> <div class="hi1"> <img src="img/small04.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">烤箱</font><br /> <font face="黑體" color="red" size="3px" align="center">¥389.00</font> </div> <div class="hi2"> <img src="img/small08.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">電飯煲</font><br /> <font face="黑體" color="red" size="3px" align="center">¥299.00</font> </div> <div class="hi2"> <img src="img/small05.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">飲水機</font><br /> <font face="黑體" color="red" size="3px" align="center">¥439.00</font> </div> <div class="hi2"> <img src="img/small04.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">烤箱</font><br /> <font face="黑體" color="red" size="3px" align="center">¥389.00</font> </div> <div class="hi2"> <img src="img/small08.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">電飯煲</font><br /> <font face="黑體" color="red" size="3px" align="center">¥299.00</font> </div> <div class="hi2"> <img src="img/small05.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">飲水機</font><br /> <font face="黑體" color="red" size="3px" align="center">¥439.00</font> </div> <div class="hi2"> <img src="img/small04.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">烤箱</font><br /> <font face="黑體" color="red" size="3px" align="center">¥389.00</font> </div> <img src="img/ad.jpg" id="img7"/> </div> <div class="commodity"> 最新商品<img src="img/title2.jpg" class="c"> </div> <div class="newImg"> <img src="img/big01.jpg" class="img2"> <img src="img/middle01.jpg" class="img3"> <div class="hi1"> <img src="img/small08.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">電飯煲</font><br /> <font face="黑體" color="red" size="3px" align="center">¥299.00</font> </div> <div class="hi1"> <img src="img/small05.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">飲水機</font><br /> <font face="黑體" color="red" size="3px" align="center">¥439.00</font> </div> <div class="hi1"> <img src="img/small04.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">烤箱</font><br /> <font face="黑體" color="red" size="3px" align="center">¥389.00</font> </div> <div class="hi2"> <img src="img/small08.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">電飯煲</font><br /> <font face="黑體" color="red" size="3px" align="center">¥299.00</font> </div> <div class="hi2"> <img src="img/small05.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">飲水機</font><br /> <font face="黑體" color="red" size="3px" align="center">¥439.00</font> </div> <div class="hi2"> <img src="img/small04.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">烤箱</font><br /> <font face="黑體" color="red" size="3px" align="center">¥389.00</font> </div> <div class="hi2"> <img src="img/small08.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">電飯煲</font><br /> <font face="黑體" color="red" size="3px" align="center">¥299.00</font> </div> <div class="hi2"> <img src="img/small05.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">飲水機</font><br /> <font face="黑體" color="red" size="3px" align="center">¥439.00</font> </div> <div class="hi2"> <img src="img/small04.jpg"><br /> <font face="黑體" color="#000000" size="3px" align="center">烤箱</font><br /> <font face="黑體" color="red" size="3px" align="center">¥389.00</font> </div> </div> <div class="img5"> <img src="img/footer.jpg" id="img5"> </div> <div class="bottom"> <a href="#" target="_blank"><font color="dodgerblue" size="3px"> 關(guān)于我們</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">聯(lián)系我們</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">招賢納士</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">法律聲明</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">友情鏈接</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">支付方式</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">配送方式</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">服務(wù)聲明</font></a> <a href="#" target="_blank"><font color="dodgerblue" size="3px">廣告聲明</font></a> </div> <div class="bottom"> <font size="2px">Copyright©2015-2016西部開源 版權(quán)所有</font> </div> </div> </body>
</html>
以上是“如何使用div+css實現(xiàn)網(wǎng)站首頁”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
當前文章:如何使用div+css實現(xiàn)網(wǎng)站首頁
文章起源:http://jinyejixie.com/article2/jdojic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機、標簽優(yōu)化、軟件開發(fā)、外貿(mào)建站、手機網(wǎng)站建設(shè)、全網(wǎng)營銷推廣
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)