缩放有什么错误:1;在 CSS 中修复? [英] What bug does zoom:1; fix in CSS?
问题描述
我见过人们在 HTML 元素上应用 CSS 属性 zoom: 1;
.
I have seen people apply the CSS property zoom: 1;
on HTML elements.
他们为什么要这样做,它修复了什么错误?
Why do they do this, and what bug does it fix?
推荐答案
这在 Internet Explorer 7 及更低版本中提供了一个称为 hasLayout
的内部属性.
This provides an internal property known as hasLayout
in Internet Explorer versions 7 and lower.
关于该主题的权威文章在这里:http://www.satzansatz.de/cssd/onhavelayout.html
The definitive article on the subject is here: http://www.satzansatz.de/cssd/onhavinglayout.html
大量 Internet Explorer 的渲染不一致可以通过给定一个元素布局".在这篇文章中,作者专注于某些方面这个复杂的事情.
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:
这篇关于缩放有什么错误:1;在 CSS 中修复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!