在javascript中切换iframe滚动? [英] Toggle iframe scrolling in javascript?
本文介绍了在javascript中切换iframe滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在javascript中切换iframe在on,off和auto之间的滚动?我尝试将frame.scrolling属性更改为yes,no和auto,但它没有任何效果。
How can I toggle an iframe's scrolling between on, off and auto in javascript? I tried changing the frame.scrolling attribute to "yes", "no" and "auto", but it doesn't have any effect.
推荐答案
尝试设置CSS属性(overflow-x和overflow-y,或者只是溢出)。
Try setting the CSS attributes instead (overflow-x and overflow-y, or just overflow).
链接: http://www.w3schools.com/Css/pr_pos_overflow.asp
这篇关于在javascript中切换iframe滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文