这是demo。布朗区域和右栏必须先行。 Firefox和Chrome没有问题。但是,在IE闪存播放器前面所有其他元素。 z-index既有棕色元素,也有flash播放器和右列。如何在所有浏览器中使此页面看起来相同?
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
background:#000000;
color:#fff;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
.temizle{clear:both;}
/***************** Player *********************/
#flashobj {
position: relative;
z-index: 1;
}
#banner {
position: fixed;
bottom: 0px;
left: 0px;
height:100px;
width:85%;
background: #88451c;
z-index: 99;
}
/********************* Tag combination block on right side***********************/
.FixedHeightContainer
{
position: fixed;
top: 0px;
right: 0px;
height: 100%;
width: 15%;
padding: 3px;
background-color: #000;
font-family:"Arial",Georgia,Serif;
font-size: 1em;
font-weight: 600;
z-index: 100;
}
.TContent
{
color:#c11;
height:95.8%;
overflow:auto;
background-image:url('http://cruisear.com/c/img/bg.png');
color: #B7B7C7;
}
.checkbox{
}
.cbox:hover{
background:#FCDC4C;
color: #000;
}
答案 0 :(得分:2)
显然z-index与flash不兼容。希望这会有所帮助。 - > http://manisheriar.com/blog/flash_objects_and_z_index
答案 1 :(得分:2)
必须将wmode =“opaque”(或wmode =“transparent”)属性添加到flash对象本身。然后,您可以使用z-index设置堆叠顺序。
<object wmode="opaque">
答案 2 :(得分:2)
以下对我有用。
<param name="wmode" value="opaque" />
我在Why doesn't Z-Index in IE render the way it's supposed to over a Flash Movie?
找到了这个解决方案