可怕的 iframe 水平滚动条在 IE 中无法删除? [英] Dreaded iframe horizontal scroll bar can't be removed in IE?

查看:26
本文介绍了可怕的 iframe 水平滚动条在 IE 中无法删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 iframe.内容比我设置的宽度宽,因此 iframe 获得水平滚动条.我无法增加 iframe 的宽度,所以我只想删除滚动条.我尝试将滚动属性设置为否",但这会杀死两个滚动条,而我想要垂直滚动条.我尝试将溢出-x 设置为隐藏",这在 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.

这篇关于可怕的 iframe 水平滚动条在 IE 中无法删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆