5

我有一个使用框架的旧网站。框架内的页面不使用白色背景,因此,当框架中的页面转换时,我会得到一个恼人的“白色闪光”。我认为这可以通过更改背景颜色来解决<frame>,但无论输入什么,Internet Explorer 除了白色之外什么都看不到。Firefox 似乎接受背景颜色,但 IE 不接受。

注意:请不要在使用框架时激怒我——我知道;哎呀,我想我什至已经讲过一段时间了……哈哈……

4

1 回答 1

5

我发现了这条相当晦涩的信息;

注意这个**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>
于 2009-02-27T01:38:06.957 回答