[英]I've set a background on my html, now how do I set the background of one id to be a different color?
[英]How do I set the background color of an HTML Frame?
我有一个使用框架的遗留网站。 框架内的页面不使用白色背景,因此,当帧中的页面转换时,我会看到恼人的“白色闪光”。 我认为这可以通过更改<frame>
的背景颜色来修复,但无论输入什么,Internet Explorer都不会看到除白色之外的任何内容。 Firefox似乎接受背景颜色,但IE不是这样。
注意:请不要让我使用框架 - 我知道; 哎呀,我想我甚至已经宣讲过一段时间了......哈哈......
我发现了这个相当模糊的信息;
注意**AllowTransparency**
属性 - 这就是诀窍 - 现在,RightBackground类可以按预期设置颜色。 没有属性,颜色保持白色(#ffffff),无论如何。
参考资料可以在这里找到: http : //www.blooberry.com/indexdot/html/tagpages/f/frame.htm
<frame allowTransparency="true" class="RightBackground" src="BottomRight.asp" marginheight="0" marginwidth="10px" name="BottomRight" />
仅供参考,RightBackground的内容只设置背景颜色:
<style type="text/css">
.RightBackground
{
background-color: #EAF4D9;
}
</style>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.