如何设置 HTML 框架的背景颜色?

发布于 2024-07-13 20:51:31 字数 235 浏览 4 评论 0原文

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

注意:请不要因为使用框架而激怒我——我知道; 哎呀,我想我什至已经宣讲过一次了……哈哈……

I have a legacy website using frames. The pages within the frame do not use a white background and hence, I get an annoying "white flash" while the pages in the frames transition. I think this can be fixed by changing the background color of the <frame>, but no matter what is entered, Internet Explorer will NOT see anything but white. Firefox appears to accept the background color, but not so with IE.

NOTE: please don't flame me on using frames -- I know; heck, I think I've even preached it a time or too ... lol...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素手挽清风 2024-07-20 20:51:31

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

请注意 **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>

I found this, rather obscure, piece of information;

Notice the **AllowTransparency** attribute -- That did the trick -- now, the RightBackground class can set the color as expected. Without the attribute, the color stays white (#ffffff), regardless.

Reference can be found here: http://www.blooberry.com/indexdot/html/tagpages/f/frame.htm

<frame  allowTransparency="true" class="RightBackground" src="BottomRight.asp" marginheight="0" marginwidth="10px" name="BottomRight" />

Just FYI, the contents of RightBackground just sets the background color:

 <style type="text/css">
  .RightBackground
  {
     background-color: #EAF4D9;
  }
 </style>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文