[转载]allowTransparency属性
2015-11-07 20:28
197 查看
原文地址:allowTransparency属性作者:惊寒唱晚IE5.5开始支持浮动框架的内容透明。如果想要为浮动框架定义透明内容,则必须满足下列条件。
1.与 iframe 元素一起使用的 allowTransparency 标签属性必须设置为
true。
2.在 iframe 内容源文档,background-color 或 body 元素的 bgColor
标签属性必须设置为 transparent。
具体步骤: 1. 包含框架页的代码。
<body bgColor="#eeeeee">
<iframe allowTransparency="true" src="transparent.htm">
</iframe>
2.transparent.htm页的代码。
<body bgColor="transparent">
特别说明
本例主要是iframe对象的allowTransparency属性应用,在该属性设置为true并且iframe所载加页的背景颜色设置为transparent(透明)时iframe将透明化。
allowTransparency设置或获取对象是否可为透明。
bgColor 设置或获取对象的背景颜色。
1.与 iframe 元素一起使用的 allowTransparency 标签属性必须设置为
true。
2.在 iframe 内容源文档,background-color 或 body 元素的 bgColor
标签属性必须设置为 transparent。
具体步骤: 1. 包含框架页的代码。
<body bgColor="#eeeeee">
<iframe allowTransparency="true" src="transparent.htm">
</iframe>
2.transparent.htm页的代码。
<body bgColor="transparent">
特别说明
本例主要是iframe对象的allowTransparency属性应用,在该属性设置为true并且iframe所载加页的背景颜色设置为transparent(透明)时iframe将透明化。
allowTransparency设置或获取对象是否可为透明。
bgColor 设置或获取对象的背景颜色。
相关文章推荐
- BST转换成有序链表
- 团队编程--MP3播放器
- 适配器模式
- xml文件在JAVA读取过程中的解析
- HDU 1272 小希的迷宫 (并查集)
- HDU 1272 小希的迷宫 (并查集)
- leetcode-Combinations
- Java根据模板创建excel文件
- HDU 4510 模拟
- dot 转换的一个小工具
- 安全的本质
- 例4-2 UVa489 Hangman Judge
- hdu-3062
- 开源框架open-replicator原理分析
- day11
- UFT中表的用法
- 链栈 多链栈
- 第五次作业
- Objective-C之用C的字符来处理NSString相关的字符替换和拼接的问题
- Android 适配器委托模式