隐藏 iframe 中的滚动,当 IE 中的 iframe 为空时

Posted

技术标签:

【中文标题】隐藏 iframe 中的滚动,当 IE 中的 iframe 为空时【英文标题】:hide scroll in iframe, when iframe empty in IE 【发布时间】:2017-01-18 09:54:14 【问题描述】:

我的弹出窗口中有 iframe。如果 iframe 内容为空,则在 IE 滚动显示中,但在其他浏览器中它可以正常工作。仅当内容大于 iframe 高度时,我才需要垂直滚动。

【问题讨论】:

我认为它的overflow: auto; 问题。 Remove scrollbar from iframe的可能重复 【参考方案1】:

我认为你应该改用 CSS

overflow-y: auto; 

【讨论】:

错字:instade => instead

以上是关于隐藏 iframe 中的滚动,当 IE 中的 iframe 为空时的主要内容,如果未能解决你的问题,请参考以下文章