document.all("m_body").style.height="600"

解决方案 »

  1.   

    document.all("m_body").height="600"
      

  2.   

    <iframe frameborder="0" scrolling="no"  src="body.htm" width="778"  height="710" name="m_body"></iframe>
    <script>
    document.all("m_body").style.height="200"
    document.all.m_body.style.height="200"
    </script>
      

  3.   

    <INPUT TYPE="submit" onclick="fun()">
    <iframe id='frame' src=test.html></iframe>
    <SCRIPT LANGUAGE="JavaScript">
    function fun()
    {
    document.getElementById('frame').height=400;
    }
    </SCRIPT>
      

  4.   

    不是在<iframe>本页面,
    在<iframe>的SRC所包含的页面里改变它。如frame.htm里有这样的语句:
    <iframe frameborder="0" scrolling="no"  src="body.htm" width="778"   height="710" name="m_body"></iframe>在body.htm里应该怎样写代码改变frame.htm里的<iframe>的高度?
      

  5.   

    <body onload="parent.document.m_body.style='4000'">
      

  6.   

    <body onload="parent.document.all.m_body.style.height='4000'">
      

  7.   

    http://expert.csdn.net/Expert/topic/1258/1258691.xml?temp=.3930323
    http://expert.csdn.net/Expert/topic/868/868840.xml?temp=9.927005E-02