亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

CSS ???

??? ??? ??? ?? ????? ?? ?? ??? ?? ??? ? ????.

??: ??? ???? ?????. ???: ??? ????? ?????. ??: ?? ?? ??: ????? ?? ??? ?????.

??? ??? ????: ?? ?? ???? ?? ??? ???? ? ?????(?? ?? ??)

?? ?? html ? CSS ??? ??? ?????. ??? ?? ??????.

html:

   <div class="qd"></div>
    <div class="wd"></div>
    <div class="ed"></div>

CSS

.qd{    width: 100px;    height: 100px;    background-color: lightskyblue;
}.wd{    width: 100px;    height: 100px;    background-color: lightseagreen;
}.ed{    width: 100px;    height: 100px;    background-color: lightsalmon;
}

??? ?? ?????.

QQ截圖20161211183019.png

?? ???? ??? ?? float ??? ?????. ???? ???? ???? ??? ???? ???? ??? ???? ?????.

float: left;float: right;

Rendering

QQ截圖20161211183117.png

??? ????. ??? ???? ? ?? ?? ??? ?? ??? ??? ? ??? ???? ?? ??? ??? ?? ????(? ?? div? ??? div? ??). ??? ??:

<div class="container">
    <div class="qd"></div>
    <div class="wd"></div>
    <div class="ed"></div>
</div>

???? ??? ? ? ????:

QQ截圖20161211183439.png

??? ??? ??? ?? ?? ???? ???? ????. ? ?? ??? ??? ???? ?????

<div class="text">hello php</div>

? ?? ????

QQ截圖20161211183559.png

? ?????.

??? ? div? ?? ??? ????? ?? ?????. ??? ??? ????? ?? div? ??? ???? ???. ?? ?? CSS? ?? ???? ?????.

.text{    clear: both;
}

???:

QQ截圖20161211183809.png

???? ??
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>浮動(dòng)模型</title> <style type="text/css"> div{ border:2px red solid; width:200px; height:400px; float:left; } </style> </head> <body> <div id="div1">欄目1</div> <div id="div2">欄目2</div> </body> </html>