時(shí)間:2023-09-27 23:54:01 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)
時(shí)間:2023-09-27 23:54:01 來(lái)源:網(wǎng)站運(yùn)營(yíng)
2018-7-27 css14-網(wǎng)頁(yè)布局(標(biāo)準(zhǔn),浮動(dòng))例子:轉(zhuǎn)自HTML+CSS - 文集 - 簡(jiǎn)書<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>浮動(dòng)練習(xí)</title> <style> body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{ margin:0;padding:0 } .header{ width: 980px; height: 100px; /*background-color: red;*/ margin:0 auto; } .header .logo{ width: 250px; height: 100px; background-color: pink; float: left; } .header .language{ width: 150px; height: 50px; background-color: skyblue; float: right; } .header .nav{ width: 650px; height: 50px; background-color: purple; float: right; } .content{ width: 980px; height: 400px; /*background-color: green;*/ margin:0 auto; margin-top: 10px; } .content .aside{ width: 320px; height: 400px; background-color: yellow; float: left; } .content .article{ width: 650px; height: 400px; /*background-color: pink;*/ float: right; } .content .article .articleTop{ width: 650px; height: 350px; /*background-color: blue;*/ } .content .article .articleTop .articleTopLeft{ width: 400px; height: 350px; /*background-color: red;*/ float: left; } .content .article .articleTop .articleTopLeft .new1{ width: 400px; height: 200px; background-color: deepskyblue; } .content .article .articleTop .articleTopLeft .new2{ width: 400px; height: 140px; background-color: tomato; margin-top: 10px; } .content .article .articleTop .articleTopRight{ width: 240px; height: 350px; background-color: green; float: right; } .content .article .articleBottom{ width: 650px; height: 40px; background-color: darkgoldenrod; margin-top: 10px; } .footer{ width: 980px; height: 40px; background-color: tomato; margin:0 auto; margin-top:10px; } </style></head><body><div class="header"> <div class="logo"></div> <div class="language"></div> <div class="nav"></div></div><div class="content"> <div class="aside"></div> <div class="article"> <div class="articleTop"> <div class="articleTopLeft"> <div class="new1"></div> <div class="new2"></div> </div> <div class="articleTopRight"></div> </div> <div class="articleBottom"></div> </div></div><div class="footer"></div></body></html>
關(guān)注點(diǎn):關(guān)鍵詞:布局,標(biāo)準(zhǔn),浮動(dòng),例子
客戶&案例
營(yíng)銷資訊
關(guān)于我們
客戶&案例
營(yíng)銷資訊
關(guān)于我們
微信公眾號(hào)
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。