如何创建透明框架集? [英] How to create transparent frameset?
问题描述
我想在框架集中创建一个包含3个框架的网页。
I want to create a page with 3 frames in a frameset.
我的 Home.html
主页,有3个框架,这是 Header.html
, Announcement.php
和页脚.html
。
My Home.html
is the main page, with 3 frames, which is Header.html
, Announcement.php
and Footer.html
.
<frameset rows="10%,*,5%" noresize frameborder="NO" FRAMESPACING="0" scrolling="NO" >
<frame src="Header.html" scrolling="NO">
<frame src="Announcement.php" name="container">
<frame src="Footer.html" scrolling="NO">
</frameset><noframes></noframes>
在 Header.html
把html的样式透明到 Frame.css
里面。这与其他2个框架一样。
Inside the Header.html
, I defined the style of the html to transparent inside the Frame.css
. This same to the others 2 frames as well.
html
{
background-color : transparent;
}
但是 Home.html
不显示。但是当我删除
框架集
时,会显示背景。
我上传到这里。
那么我该如何解决这个问题呢?
So how can I solve this problem?
编辑:
基于此页面是 allowtransparency
属性浏览器的可靠性吗?
Based on this page, is the allowtransparency
attribute browser dependability?
解决:
我试图用Mozilla Firefox查看页面,看起来像使用 allowtransparency
属性,但是当我使用chrome,IE9和Opera 12查看页面时,它没有工作。
I'm tried to view the page with Mozilla Firefox, it seems like working with allowtransparency
attribute, but when I view the page using chrome, IE9 and Opera 12, it's didn't work.
推荐答案
p>使用:
<frame allowtransparency="true" ...>
这篇关于如何创建透明框架集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!