Layout

 

BFC 標準瀏覽器所具備的
Layout IE瀏覽器所具備的

Layout
它決定了塊級元素如何對它的內容進行佈局,以及與其它元素的關係和相互做用
hasLayout true
false

觸發Layout的方式
一、默認觸發
table、tr、th、td、img、input、button、select、textarea、iframe
二、css
display: inline-block /*ALL*/
height: (除 auto 外任何值) /*僅適用IE6 7*/
width: (除 auto 外任何值) /*僅適用IE6 7*/
float: (left 或 right) /*ALL*/
position: absolute /*ALL*/
writing-mode: tb-rl /*ALL*/
zoom: (除 normal 外任意值) /*僅適用IE6 7*/


/*如下適用IE7+*/
min-height: (任意值)
min-width: (任意值)
max-height: (除 none 外任意值)
max-width: (除 none 外任意值)
overflow: (除 visible 外任意值,僅用於塊級元素)
overflow-x: (除 visible 外任意值,僅用於塊級元素)
overflow-y: (除 visible 外任意值,僅用於塊級元素)
position: fixedcss

相關文章
相關標籤/搜索