http://expert.csdn.net/Expert/topic/2906/2906898.xml?temp=.7237207

解决方案 »

  1.   

    下面那样:
    <iframe src=test.htm allowTransparency="true"></iframe>
    test.htm: <BODY STYLE="background-color:transparent">
      

  2.   

    <body bgcolor="#F0000F">
    <iframe src=test.htm allowTransparency="true"></iframe>
    test.htm: <BODY STYLE="background-color:transparent">
      

  3.   

    demo.htm<body BGCOLOR="red">
    <IFRAME NAME="Frame1" SRC="iframe.htm" ALLOWTRANSPARENCY="true"> 
    </IFRAME> 
    iframe.htm<HTML> 
    <BODY  STYLE="background-color:transparent"> 
    <P>Transparent. 
    </BODY> 
    </HTML>
      

  4.   

    IE5.5及以上版本的IFRAME不会遮住前面的标签,但要做到透明恐怕不行。我觉得IFRAME并不是普通标签,它是个嵌入的窗口。