在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