Toggle iframe scrolling in javascript?

↘锁芯ラ 提交于 2019-12-12 04:50:03

问题


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.


回答1:


Try setting the CSS attributes instead (overflow-x and overflow-y, or just overflow).

Link: http://www.w3schools.com/Css/pr_pos_overflow.asp



来源:https://stackoverflow.com/questions/715421/toggle-iframe-scrolling-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!