什么bug放大:1;修复在CSS? [英] What bug does zoom:1; fix in CSS?
问题描述
我已经看到人们在HTML元素上应用CSS属性 zoom:1;
。
I have seen people apply the CSS attribute zoom:1;
on HTML elements.
推荐答案
这提供了一个内部属性称为 hasLayout
在Internet Explorer 7和更低版本中。
This provides an internal property known as hasLayout
in Internet Explorer versions 7 and lower.
关于这个主题的最后一篇文章是: http://www.satzansatz.de/cssd/onhavinglayout.html
The definitive article on the subject is here: http://www.satzansatz.de/cssd/onhavinglayout.html
很多Internet Explorer的渲染
不一致可以通过给予
一个元素layout来修复。在本文中,
作者集中在
的某些方面这个复杂的事情。
A lot of Internet Explorer's rendering inconsistencies can be fixed by giving an element "layout." In this article, the authors focus on some aspects of this complicated matter.
布局是一个IE / Win专有的
概念,它决定元素
如何绘制和绑定其内容,与其他元素相关,
对应用/用户
事件做出反应并传输。
"Layout" is an IE/Win proprietary concept that determines how elements draw and bound their content, interact with and relate to other elements, and react on and transmit application/user events.
有关 zoom:1
(以及 hasLayout
)的特定错误的示例修复:
For an example of a specific bug that zoom: 1
(and so hasLayout
) helps to fix:
内联块在Internet Explorer 7,6中无法正常工作
这篇关于什么bug放大:1;修复在CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!