固定位置Div始终显示在顶部? [英] Fixed position Div ALWAYS appear on top?
本文介绍了固定位置Div始终显示在顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个固定的位置标签,样式如下在我的CSS:
I Have a fixed position tag that is styled as follows within my CSS:
#facebook {
height: 249px;
width: 50px;
position: fixed;
left: 0px;
top: 200px;
}
在我的网站上有一个flash(.swf)
There is a flash (.swf) header image on my website, and when the resolution of the browser is low enough, the facebook div is partially hidden by the flash header.
这是我的HTML:
<body id="index">
<div id="facebook"><img src="images/facebook.png" width="50" height="249" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="2,154,40,191" href="http://www.youtube.com/" />
<area shape="rect" coords="3,202,39,240" href="http://www.facebook.com/group.php?gid=72781675198" />
</map>
</div>
<div id="wrapper">
…
<div id="title_box"><object type="application/x-shockwave-flash"
data="images/flash.swf"
width="960" height="450">
<param name="movie" value="images/flash.swf" />
<img src="images/header.jpg" />
</object></div>
如何获得它,所以我的facebook固定位置div总是显示在这.swf内容的顶部
How do I get it so my facebook fixed position div is always displayed on top of this .swf content?
提前感谢
Jon
推荐答案
如果内容被闪存阻塞,即使使用正确的z-index,请将 wmode =transparent
添加到Flash嵌入脚本。
If the content is obstructed by flash, even with a correct z-index, add wmode="transparent"
to the flash embed script.
这篇关于固定位置Div始终显示在顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文