我需要将 overflow:hidden
应用到带有 CSS 的页面主体,但这在 Internet Explorer 7 中不起作用。
我已经阅读过有关此主题的内容,但总是使用 div。
我怎样才能使它适用于 Internet Explorer 7?我不介意使用 jQuery。
最佳答案
参见此处:http://www.artmov.com/dev/snippets/apply-overflow-x-overflow-y-to-body-in-ie7-ie6-84/ :
Applying
overflow-x:hidden
oroverflow-y:hidden;
to the body element of the document will not work. Theoverflow-x:hidden
oroverflow-y:hidden
must be applied to thehtml
element, notbody
element.
关于css - Internet Explorer 7 中的正文溢出隐藏问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4443006/