五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

html css:div盒子模型色塊布局,浮動的用法的理解等

2020-04-27 00:23 作者:詩書畫唱  | 我要投稿

個人對浮動的用法的理解:

假如有用div和css樣式設(shè)置的按順序的1,2,3個色塊,那么在css中,若都設(shè)置為”float:left(浮動);“那么會按順序依次向在水平方向緊貼著地排隊。



<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<title>div</title>

<link rel="stylesheet" href="css/div.css">

</head>

<body>

<div id="all">

<div class="one">頂部</div>

<div class="two">

<div class="two_left">左邊部分</div> <div class="two_center">中間部分</div> <div class="two_right">右邊部分</div>


</div>


<div class="three">底部</div>


</div>

</body>

</html>


#all{

width: 1000px;

height: 600px;

border:1px solid red;

}

.one{

width:1000px;

height:200px;

border:1px solid orange;


}

?

.two{

width: 1000px;

height: 200px;

border:1px solid yellow;



}

.two_left{


width: 247px;

height:200px;

border:1px solid blue;

background-color: greenyellow;

float: left;

}


.two_center{

width: 500px;

height: 200px;

border:1px solid plum;

background-color: yellow;

float: left;

}



.two_right{width: 247px;

height: 200px;

border:1px solid deepskyblue;


float: left;

background-color:greenyellow;

}


.three{

width:1000px;

height: 196px;

border:1px solid green;

margin-right: auto;


}


效果圖:





html css:div盒子模型色塊布局,浮動的用法的理解等的評論 (共 條)

分享到微博請遵守國家法律
昌宁县| 清原| 林口县| 西昌市| 平利县| 松潘县| 白朗县| 兰州市| 蓬安县| 离岛区| 延安市| 昭平县| 南安市| 扶沟县| 余姚市| 樟树市| 宁津县| 桦川县| 连平县| 内乡县| 黑山县| 南阳市| 通榆县| 台中市| 中宁县| 秭归县| 万荣县| 大关县| 金寨县| 鹤岗市| 邯郸市| 从化市| 永年县| 乌兰察布市| 沿河| 钟山县| 应城市| 扎赉特旗| 全州县| 山西省| 江北区|