IE5.5开始支持浮动框架的内容透明。如果想要为浮动框架定义透明内容,则必须满足下列条件。
1.与 iframe 元素一起使用的 allowTransparency 标签属性必须设置为 true。
2.在SEO靠我 iframe 内容源文档,background-color 或 body 元素的 bgColor 标签属性必须设置为 transparent。
具体步骤: 1. 包含框架页的代码。
2.tranSEO靠我sparent.htm页的代码。
特别说明
本例主要是iframe对象的allowTransparency属性应用,在该属性设置为true并且iframe所载加页的背景颜色设置为transparent(透SEO靠我明)时iframe将透明化。
allowTransparency设置或获取对象是否可为透明。
bgColor 设置或获取对象的背景颜色。
来源:http://blog.sina.com.cn/s/blog_SEO靠我56e3129d01000apr.html
网站备案号:浙ICP备17034767号-2