[英]How to remove iframe's scrollbars?
如何删除iframe的滚动条? 在Firefox中很容易,但是我发现自己无法达到与所有主要浏览器兼容的效果。
如果CSS技术对您不起作用,请尝试将属性scrolling="no"
到iframe
HTML代码中。
<iframe scrolling="no" src="..." >
除了Alex的答案外,我还必须添加以下内容,才能从FF和Chrome中删除水平工具栏。 即使已将其添加到css中,也已将其添加到i-frame页面中:
<style>
iframe::-webkit-scrollbar {
display: none;
}
</style>
<iframe runat="server" id="_theFrame" src="url" width="100%" scrolling="no" height="200" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" style="display: block; background: none repeat scroll 0% 0% transparent; width: 100%;" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.