编辑下面的代码:【加编码】
<html> <head> <script> function removeScroll() { document.getElementById("myframe").scrolling="no"; } </script> </head> <body> <iframe id="myframe" src="http://ziqiangxuetang.com" scrolling="auto"> <p>Your browser does not support iframes.</p> </iframe> <p>The value of the scrolling attribute is: <script> document.write(document.getElementById("myframe").scrolling); </script> </p><p> <input type="button" onclick="removeScroll()" value="Remove Scrollbars"> </p><p>Internet Explorer, Google Chrome, Opera, and Safari have problems with setting the scrolling attribute.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂