<script>
function ddd(){
document.getElementById('fme').style.height = '111px';
}
</script><iframe src="123.htm" id="fme" height="222">
</iframe>
<input type="button" onclick="ddd();" value="cc" />
function ddd(){
document.getElementById('fme').style.height = '111px';
}
</script><iframe src="123.htm" id="fme" height="222">
</iframe>
<input type="button" onclick="ddd();" value="cc" />
$=function (id){return document.getElementById(id);}
function ddd(){
var id=$("aaa").value;
document.getElementById('fme').height =id;
}
</script>
</head>
<body >
<iframe src="123.htm" id="fme" height="222">
</iframe>
请输入想要的高度<input type="text" id="aaa"/>
<input type="button" onclick="ddd();" value="确定" />
</body>
</html>
自动改变!!!!!!!!!!!!!