菜单切换
FACESOHO知行者
心灵
记录
远方
赞赏工具
源代码:
点击运行
保存
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小鸟启蒙(facesoho.com)</title> <script> function removeScroll(){ document.getElementById("myframe").scrolling="no"; } </script> </head> <body> <iframe id="myframe" src="http://www.facesoho.com" scrolling="auto"> <p>你的浏览器不支持iframes。</p> </iframe> <p>scrolling属性的值为: <script> document.write(document.getElementById("myframe").scrolling); </script> <p> <input type="button" onclick="removeScroll()" value="移除滚动条"> <p>IE,Google Chrome,Opera,和Safari 在设置滚动条时会出现问题。</p> </body> </html>
运行结果