第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

css布局學(xué)習(xí)總結(jié)與練習(xí)——實(shí)現(xiàn)多欄混合布局

標(biāo)簽:
Html/CSS

这节课程较为精简,掌握全部的知识点只需要能完成多栏布局即可。
实现效果

<html>
<head>
<title>布局结构</title>
<style>
.head1 { background-color:#0000cc; text-align:center; height:68px; width:200px; left:10px; position:absolute}
.head2 { background-color:#cccccc; text-align:center; height:50px; margin:0 220px}
.head3 { background-color:#00cccc; text-align:center; height:68px; width:200px; right:10px; top:0; 

position:absolute}
.body1 { background-color:#cc00cc; float:left; margin-left:10px; width:40px; height:600px}
.body2 { background-color:#dd00cc; float:right; margin-right:10px; width:40px; height:600px}
.body3 { background-color:#00ccdd; margin:0 60px; height:600px; width:auto; text-align:center}
.tail1 { background-color:#ddccdd; float:left; height:50px; width:150px; margin-left:10px; text-align:center}
.tail2 { background-color:#ddccdd; float:left; height:50px; width:150px; margin-left:150px; text-align:center}
.tail3 { background-color:#ddccdd; float:left; height:50px; width:150px; margin-left:230px; text-align:center}
.tail4 { background-color:#ddccdd; float:left; height:50px; width:150px; margin-left:230px; text-align:center}
.tail5 { background-color:#ddccdd; float:right; height:50px; width:150px; margin-right:10px; text-align:center}
</style>
</html>

<body style="margin:0; padding:0">
<div class="head1">
    title1
</div>

<div class="head2">
    title2
</div>

<div class="head3">
    title3
</div>

<hr style="margin-left:220px; margin-right:220px;"/>

<div class="body1">
    The one
</div>

<div class="body2">
    The two
</div>

<div class="body3">
    The three
</div>

<hr style="margin-left:10px ; margin-right:10px;"/>

<div class="tail1">
    The four
</div>

<div class="tail2">
    The five
</div>

<div class="tail3">
    The six
</div>

<div class="tail4">
    The seven
</div>

<div class="tail5">
    The eight
</div>

</body>
</html>

分别使用了三种方式来实现head、body和tail的多栏布局,分别对应不同样式,还有一种按width比例实现与上面tail的方法类似,只是将width划分成等比例如5栏即:20%,20%,20%,20%,20%。
<hr/>
~仅以勉励自己,继续学习,也要时常复习,加油(^ω^)

點(diǎn)擊查看更多內(nèi)容
2人點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消