css - Internet Explorer 7 中的正文溢出隐藏问题

标签 css internet-explorer-7

我需要将 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 or overflow-y:hidden; to the body element of the document will not work. The overflow-x:hidden or overflow-y:hidden must be applied to the html element, not body element.

关于css - Internet Explorer 7 中的正文溢出隐藏问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4443006/

相关文章:

javascript - 如何在一个 Vuejs 元素中使用多个模板?

html - 如何防止用户从 chrome 开发工具更改用户选择的 css 属性?

javascript - 为什么两条 Jquery 行都不会执行?

html - 为什么过滤 : alpha(opacity=100) break my printouts? (IE7 & IE8)

html - 从缓存渲染 CSS 时,IE7 回退到 IE6 标准模式

css - Div出现在滚动条上方

html - 将图像定位在两个 div 的中间 - css

javascript - IE7 中未定义的 JSON

javascript - 鼠标悬停不适用于 ie7 中动态生成的 li

IE7 中的 javascript,数字(整数)验证不起作用