try<iframe id="xxx" src="a.html"></iframe>
<input type="button" value="showdim" onclick="alert(xxx.document.body.clientWidth+':'+xxx.document.body.clientHeight);">

解决方案 »

  1.   

    实际上我是想让iframe的大小随被包含的网页的大小而变化,请问行不行?
      

  2.   

    <iframe id="xxx" src="a.html"></iframe>
    <input type="button" value="Change Size" onclick="document.all('xxx').width=100;document.all('xxx').height=100">
      

  3.   

    不是你说的那个意思,
    我的意思是,像
    <div style="width:100;display:visible">kajldsfjkl.........
    ...
    </div>这样
    ,随 着div内的东内容的多少而自动改变高度.
      

  4.   

    http://joy.zhgnet.com/bihu/wdb/wdbread.php?forumid=1&filename=f_160
      

  5.   

    <iframe id="56" src="bbs.html" width="100%" height=300></iframe>