javascript中的滚动条iframe [英] scrollbar iframe in javascript
本文介绍了javascript中的滚动条iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当iframe的内容太大而没有出现时,我想添加一个滚动条.
I would like to add a scrollbar when the contents of the iframe is too large and does not appear.
我正在尝试以下操作:
有什么帮助吗?
推荐答案
正确的语法肯定是...
Surely the correct syntax would be ...
parent.iframepage.style.overflow = "auto";
我建议在样式表中这样做.
I'd recommend doing it in the stylesheet.
iframe
{
overflow: auto;
}
您应该使用ID,类或类似内容对它进行更好的限定.
You should qualify it better, with an ID, class or such.
这篇关于javascript中的滚动条iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文