hasLayout属性
在IE中,當(dāng)一個(gè)元素的hasLayout屬性被觸發(fā)后(不可逆轉(zhuǎn)),就會(huì)擁有一個(gè)布局,可以進(jìn)行更多的樣式更改操作。
包含該屬性的元素有
body html/table tr th td/img/hr/input button file select fieldset textarea/frameset iframe frame/objects applets embed
可以通過(guò)簡(jiǎn)單的css設(shè)置觸發(fā)該屬性,包括:
* display: inline-block
* height: (任何值除了auto)
* float: (left 或 right)
* position: absolute
* width: (任何值除了auto)
* writing-mode: tb-rl
* zoom: (除 normal 外任意值)
Internet Explorer 7 還有一些額外的屬性(不完全列表):
* min-height: (任意值)
* max-height: (除 none 外任意值)
* min-width: (任意值)
* max-width: (除 none 外任意值)
* overflow: (除 visible 外任意值)
* overflow-x: (除 visible 外任意值)
* overflow-y: (除 visible 外任意值)
* position: fixed
有很多IE下的bug都是由hasLayout屬性引起的,可以注意。
轉(zhuǎn)載于:https://www.cnblogs.com/alexdu/archive/2012/10/23/2736154.html
總結(jié)
以上是生活随笔為你收集整理的hasLayout属性的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: flash在影片剪辑里面跳转场景
- 下一篇: 实拍北京“暴雨模式”:坐在车内 什么都看