我有一个带有类名.transparentbg的iFrame:
.transparantbg{
background-color: transparent;
}
这在Chrome中很好用,但在IE中不行...
请帮忙?
问候
我有一个带有类名.transparentbg的iFrame:
.transparantbg{
background-color: transparent;
}
这在Chrome中很好用,但在IE中不行...
请帮忙?
问候
在你的 iframe 中添加 allowTransparency="true" 属性。
<IFRAME ID="Frame1" SRC="whatever.htm" allowTransparency="true">
为了在 whatever.htm 页面上实现透明背景,在其 body
标签中添加 background:transparent
。
<body style="background:transparent">
allowTransparency="true"
这一部分。 - bbodenmiller