效果还是一样,还是打印top的

解决方案 »

  1.   

    你可以为每个frame命个名字,如:
    <IFRAME align=center VALIGN=top MARGINWIDTH=0 FRAMEBORDER=1 name="if1"                             
    SRC="frmiddle.htm" height="100%" width="100%"></iframe>    <IFRAME align=center VALIGN=top MARGINWIDTH=0 FRAMEBORDER=1 name="if2"                             
    SRC="frmiddle.htm" height="100%" width="100%"></iframe>    
    <script language="javascript">function print_onclick(){
    if1.focus() ;  //打印if1帧
    if1.status = "" ;
    window.print() ;
    return ;
    }
    </script>