从 iframe 中删除滚动条 [英] Remove scrollbar from iframe

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

问题描述

使用此代码

<iframe frameborder="0" style="height: 185px; overflow:scroll; width: 100%" src="http://www.cbox.ws/box/?boxid=439&boxtag=7868&sec=main" marginheight="1" marginwidth="1" name="cboxmain" id="cboxmain" seamless="seamless" scrolling="no" frameborder="0" allowtransparency="true"></iframe>

这是它的显示方式(http://www.talkjesus.com 主页上的留言框)

This is how it appears (the shoutbox on homepage of http://www.talkjesus.com)

如何去掉水平滚动条,修改垂直滚动条的css?

How do I remove the horizontal scrollbar and modify the css of the vertical scrollbar?

推荐答案

在你的 css 中:

iframe{
    overflow:hidden;
}

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

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