<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" />

解决方案 »

  1.   

    TMD我问了20多个群,加起来都有上万人了,没一个解决的到CSDN上刚10分钟就给我解决了  哎  还是csdn好使呀
      

  2.   

    <script LANGUAGE="javascript">
    $=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> 
    自动改变!!!!!!!!!!!!!