<input type=button onclick="document.all.mxh.style.visibility='hidden'" value=hidden>
<input type=button onclick="document.all.mxh.style.visibility='visible'" value=visible>
<iframe id=mxh src="http://colorweb.go.163.com"></iframe>

解决方案 »

  1.   

    <iframe id="frm"></iframe><br>
    <input type="button" value="change size" onclick="frm.resizeTo(400,400);">
    <input type="button" value="show" onclick="document.all('frm').style.visibility = 'visible';">
    <input type="button" value="hide" onclick="document.all('frm').style.visibility = 'hidden';">
      

  2.   

    谢谢孟子e章和weidegong,你们代码的效果完全一样!我的错误在于掉了document后的all,再次表示感谢!
      

  3.   

    谢谢孟子e章和weidegong,你们代码的效果完全一样!我的错误在于掉了document后的all,再次表示感谢!
      

  4.   

    document.all = IE的HTML元素集合
      

  5.   

    能不能通过控制它的height是否为0来实现?