我需要使用 css、jquery 或 js 隐藏 iframe 上的水平滚动条。
我建议结合使用
- CSS
overflow-y: hidden;
-
scrolling="no"(适用于 HTML4)
-
and seamless="seamless" (for HTML5)*
* The seamless
attribute has been removed from the standard, and no browsers support it.
.foo {
width: 200px;
height: 200px;
overflow-y: hidden;
}
<iframe src="https://bing.com"
class="foo"
scrolling="no" >
</iframe>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)