<IFRAME id=frmRight style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name=frmRight src="" frameBorder=0></IFRAME>
代码在上卖弄,怎么就是无效呢

解决方案 »

  1.   

    在asp中时好用的,为什么一放到asp.net页面中就无效了呢
      

  2.   

    去掉页面上的:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    试试看
      

  3.   

    <iframe width="100%" align="center" height="200" id="frame" name="frame" frameborder="0" scrolling="no" onload="Javascript:SetWinHeight(this)"></iframe>     
     
     function SetWinHeight(obj) {
                var win = obj;
                if (document.getElementById) {
                    if (win && !window.opera) {
                        if (win.contentDocument && win.contentDocument.body.offsetHeight)
                            win.height = win.contentDocument.body.offsetHeight;
                        else if (win.Document && win.Document.body.scrollHeight)
                            win.height = win.Document.body.scrollHeight;
                    }
                }
            }