它只与ie6有关吗?
放大:1?
布局是否只是IE的TAG?
编辑:
我发现这个信息对我来说非常丰富
Because Internet Explorer is so old
(as it was one of the first browsers
available),it hasn’t had the luxury
of starting anew as current browser
do. So as time went by,Microsoft
began adapting new engines to make use
of CSS. Seems fine… However,CSS
changes the fundamental assumption
that Internet Explorer’s engine is
based on – that anything significant
is a rectangle that contains all its
content.So to deal with the new standards of
CSS,Microsoft decIDed to fix their
ancIEnt engine by implementing the
hasLayout property,instead of
rebuilding IE. Every element in
Internet Explorer Now has a hasLayout
property. Depending on the element,it
is set to either true or false by
default. If hasLayout is set to true –
the element is an independent Box that
is responsible for rendering itself.
If false – then the element relIEs on
a parent element that has hasLayout
set to true to render it. This is
where a majority of IE BUGs come to
life.
来源:http://bytesizecss.com/blog/post/fix-haslayout-with-one-line-of-css
我再发现一个这样的讨论:http://www.molly.com/2007/03/30/back-to-work-someone-please-clearly-articulate-haslayout/
解决方法 它是一个@R_419_6832@元素上的非标准属性,仅由ie7和更低版本(ie8兼容模式)支持,如果触发该元素会以某种方式呈现元素(这可能是意想不到的,随机的,可以是godsend或可以是地狱).经典示例是给元素布局,以便清除浮点数.
#wrapper { zoom:1; }
该元素现在将包含浮点数.任何这些属性和值除auto / normal之外都会触发布局属性.
* display: inline-block* height: (any value except auto)* float: (left or right)* position: absolute* wIDth: (any value except auto)* writing-mode: tb-rl* zoom: (any value except normal)
请仔细阅读@ http://reference.sitepoint.com/css/haslayout
总结以上是内存溢出为你收集整理的html – 什么是haslayout?全部内容,希望文章能够帮你解决html – 什么是haslayout?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)