x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
<script>
7
function changeSize() {
8
document.getElementById("myframe").height = "300";
9
document.getElementById("myframe").width = "300";
10
}
11
</script>
12
</head>
13
<body>
14
15
<iframe id="myframe" src="https://www.mifengjc.com" height="200" width="200">
16
<p>你的浏览器不支持iframes。</p>
17
</iframe>
18
<br><br>
19
<input type="button" onclick="changeSize()" value="修改大小">
20
21
</body>
22
</html>