try<iframe id="xxx" src="a.html"></iframe>
<input type="button" value="showdim" onclick="alert(xxx.document.body.clientWidth+':'+xxx.document.body.clientHeight);">
<input type="button" value="showdim" onclick="alert(xxx.document.body.clientWidth+':'+xxx.document.body.clientHeight);">
<input type="button" value="Change Size" onclick="document.all('xxx').width=100;document.all('xxx').height=100">
我的意思是,像
<div style="width:100;display:visible">kajldsfjkl.........
...
</div>这样
,随 着div内的东内容的多少而自动改变高度.