∥″可乐〃∥

让我展望未来,网络是我不变的终结者!

« CorelDRAW X4V14.0.0.701 SP2 官方中文免注册精简版[ps教程]Photoshop火焰效果、火焰字特效 »

让iframe框架背景透明的代码

操作步骤:

1. 包含框架页:

<body bgColor="#eeeeee">
<iframe allowTransparency="true" src="kuangjia.htm">
</iframe>

2.被框架页kuangjia.htm:

<body bgColor="transparent">

<iframe style='FILTER: alpha(opacity=100,style=3)' id="baiduSpFrame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="468" height="60" src="http://spcode.baidu.com/spcode/spstyle/style1185.jsp?tn=andyzqj_sp&ctn=0&styleid=1185";></iframe>

3.摘自设计学院

在transparentBody.htm文件的<body>...</body><body>标签中,我已经加入了style="background-color=transparent"
 
通过以下四种IFRAME的写法我想大概你对iframe背景透明效果的实现方法应该会有个清晰的了解:

<IFRAME ID="Frame1" SRC="transparentBody.htm" allowTransparency="true"></IFRAME>
 
<IFRAME ID="Frame2" SRC="transparentBody.htm" allowTransparency="true" STYLE="background-color: green"> </IFRAME>
 
<IFRAME ID="Frame3" SRC="transparentBody.htm"></IFRAME>
 
<IFRAME ID="Frame4" SRC="transparentBody.htm" STYLE="background-color: green"> </IFRAME>

  • quote 3.层透明
  • 引自 层透明
    &lt;div style="height:200px;width:600px;background:red;filter:alpha(opacity=20);opacity:.2"&gt;&lt;/div&gt;


    可以用喽~
  • 2009-12-18 16:35:22  RevertComment
  • quote 2.层透明
  • <div style="height:200px;width:600px;background:red;filter:alpha(opacity=20);opacity:.2"></div>
  • 2009-12-18 16:34:39  RevertComment
  • quote 1.可乐
  • <iframe border=0 name=product src="product_read.html" width="329" height="484" allowTransparency scrollbars=yes frameBorder="0"></iframe>
  • 2009-6-3 16:06:03  RevertComment
Comments.

◎ welcome to participate in the discussion

日历

Comments.

Previous.

ADMIN. | EMAIL. | ABOUT.

Powered By Z-Blog 1.8 Spirit Build 80722Copyright © 2006-2011 可乐Blog Kele520.Com All Rights Reserved.[皖ICP备 06001314号]