0

这是一个演示。棕色区域和右栏必须在前。在 Firefox 和 Chrome 中没有问题。但是,在 IE flash player 前面所有其他元素。棕色元素和 Flash 播放器和右栏都有 z-index。我怎样才能使这个页面在所有浏览器中看起来都一样?

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;
}
4

3 回答 3

2

以下对我有用。

<param name="wmode" value="opaque" />

我在为什么 IE 中的 Z-Index 不能按照它应该在 Flash 电影上呈现的方式找到这个解决方案?

于 2013-11-19T15:45:41.840 回答
2

必须将 wmode="opaque"(或 wmode="transparent")属性添加到 flash 对象本身。然后您可以使用 z-index 设置堆叠顺序。

更多信息:对网页上的嵌入对象使用 wmode="transparent"、"opaque" 或 "window" 之间的区别

<object wmode="opaque">
于 2013-06-27T23:31:20.373 回答
2

显然 z-index 不能很好地与 flash 配合使用。希望这会有所帮助。-> http://manisheriar.com/blog/flash_objects_and_z_index

于 2013-06-27T23:29:02.697 回答