在IE中无法删除可怕的iframe水平滚动条? [英] Dreaded iframe horizontal scroll bar can't be removed in IE?
问题描述
我有一个iframe。内容比我设置的宽度宽,因此iframe获得水平滚动条。我无法增加iframe的宽度,所以我只想删除滚动条。我尝试将scroll属性设置为no,但是这会杀死两个滚动条,我想要垂直滚动条。我尝试将overflow-x设置为hidden并且在ff中杀死了水平滚动条但在IE中没有。对我来说很难过。
I have an iframe. The content is wider than the width I am setting so the iframe gets a horizontal scroll bar. I can't increase the width of the iframe so I want to just remove the scroll bar. I tried setting the scroll property to "no" but that kills both scroll bars and I want the vertical one. I tried setting overflow-x to "hidden" and that killed the horizontal scroll bar in ff but not in IE. sad for me.
推荐答案
scrolling="yes" horizontalscrolling="no" verticalscrolling="yes"
将其添加到您的iFrame标签中。
Put that in your iFrame tag.
你不需要在CSS中尝试格式化它。
You don't need to mess around with trying to format this in CSS.
这篇关于在IE中无法删除可怕的iframe水平滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!