|
主题: 如何使嵌入页背景为透明而显示主页面背景?
|
 cat2
职务:普通成员
等级:1
金币:0.0
发贴:22
注册:2002/3/19 23:57:38
|
#12002/3/20 0:16:18
请教各位!
|
 I''MAD
职务:普通成员
等级:8
金币:11.0
发贴:9502
注册:2001/9/16 20:00:53
|
#22002/3/20 8:22:38
放到层里面,再设层的透明度。
|
 5D荣誉斑竹
职务:普通成员
等级:2
金币:10.0
发贴:622
注册:2001/10/21 13:06:17
|
#32002/3/20 9:31:50
allowTransparency : Sets or retrieves whether the
编辑历史:[这消息被starsjz编辑过(编辑时间2002-03-20 09:32:29)] [这消息被starsjz编辑过(编辑时间2002-03-20 09:49:02)]
|
 5DDreamweaver版主
职务:版主
等级:3
金币:10.0
发贴:1031
注册:2001/10/13 14:38:50
|
#42002/3/20 22:05:43
查了一下allowTransparency,帖出来,希望对大家有用
ALLOWTRANSPARENCY Attribute | allowTransparency Property Internet Development Index
--------------------------------------------------------------------------------
Sets or retrieves whether the object can be transparent.
Syntax
HTML Scripting object.allowTransparency(v) [ = bClear ]
Possible values
bClear Boolean that specifies or receives one of the following values.false Default. Object is opaque. It cannot be transparent. true Object can be transparent.
The property is read/write. The property has a default value of false.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
Remarks
When the property is set to false, the backgroundColor property of the object can only be that of the window. When the property is set to true, the backgroundColor property of the object can be set to any value, including the default value of transparent.
Example
The following example shows four ways to use the allowTransparency attribute, with and without the background-color attribute. Because the allowTransparency attribute of Frame1 is set to true, Frame1 renders red, the background color of the parent document. The allowTransparency attribute of Frame2 is also set to true, however the background-color attribute of Frame2 is set to green, so Frame2 renders green. Because the allowTransparency attribute of Frame3 is set to false (the default value), Frame3 renders white, the color of the t:SRC document. The allowTransparency attribute of Frame4 is also set to false, so Frame4 renders white even though the background-color attribute of Frame4 is set to green.
Show Example
Show Me Standards Information
This property is a Microsoft extension to HTML
|
 helmet
职务:版主
等级:4
金币:10.0
发贴:1559
注册:2004/1/30 15:59:27
|
#52002/3/20 23:58:21
IE 5.5或以上版本支持。
|
 伞下居士
职务:普通成员
等级:1
金币:0.0
发贴:132
注册:2001/8/11 12:21:01
|
#62002/3/21 9:56:51
hmily在上个帖子中说 引用: 放到层里面,再设层的透明度。
层的透明度由CSS控制吗?
|
 5D荣誉斑竹
职务:普通成员
等级:2
金币:10.0
发贴:622
注册:2001/10/21 13:06:17
|
#72002/3/21 10:45:46
伞下居士在上个帖子中说 引用: hmily在上个帖子中说 引用: 放到层里面,再设层的透明度。
层的透明度由CSS控制吗?
对,css中的滤镜,alpha滤镜
|
 cat2
职务:普通成员
等级:1
金币:0.0
发贴:22
注册:2002/3/19 23:57:38
|
#82002/3/21 16:48:13
alpha
Alpha滤镜可以对物体设置一定的透明度,既可以是一个图像,也可以是一个块级区域。 STYLE="filter:Alpha(Opacity=opacity, FinishOpacity=finishopacity, Style=style, StartX=startX, StartY=startY, FinishX=finishX, FinishY=finishY)" Opacity 透明度级别,范围是0-100, 0代表完全透明 is transparent, 100代表完全不透明. FinishOpacity 透明区域结束时的透明度级别,从0-100, 0代表完全透明, 100代表完全不透明。 Style 代表透明区域的形状特征,可设置的值是0(统一形状),1(线性),2(矩形),3(长方形)。 StartX 代表透明效果开始时的x坐标X. StartY 代表透明效果开始时的x坐标Y. FinishX 代表透明效果结束时的x坐标X. FinishY 代表透明效果结束时的x坐标Y.
|
 cat2
职务:普通成员
等级:1
金币:0.0
发贴:22
注册:2002/3/19 23:57:38
|
#92002/3/21 16:51:37
若透过“表格背景”看到后面的“主体背景”,这样也能实现吗?
|
 cat2
职务:普通成员
等级:1
金币:0.0
发贴:22
注册:2002/3/19 23:57:38
|
|
 5D荣誉斑竹
职务:普通成员
等级:5
金币:10.0
发贴:3292
注册:2001/5/24 10:01:29
|
#112002/3/22 11:53:46
cat2在上个帖子中说 引用: 我试着这样
透明层
但字也透明了
你可以再建立一个层。然后把文字放到这个层里
|
 cat2
职务:普通成员
等级:1
金币:0.0
发贴:22
注册:2002/3/19 23:57:38
|
#122002/3/23 10:50:04
谢谢!这不会影响速度吧!!
|