Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> <script> function changeSize(){ document.getElementById("myframe").height="300"; document.getElementById("myframe").width="300"; } </script> </head> <body> <iframe id="myframe" src="http://www.w3big.com" height="200" width="200"> <p>你的浏览器不支持iframes。</p> </iframe> <br><br> <input type="button" onclick="changeSize()" value="修改大小"> </body> </html>