css - IE 10 Html 5 视频叠加文本(z-index)

标签 css internet-explorer z-index

在 Internet Explorer 10 中查看此页面:

http://stage.tremorvideo.com/new/seller

在顶部,有一个 html 5 视频自动循环播放(静音)。那里也应该有一些文字,覆盖视频。尽管包含具有更高 z-index 的文本的 div,它仍然没有显示。

有问题的部分嵌套在 html > body > main > class landing-page-billboard 部分(main 的第二个 child )。

您可以看到它在 Chrome、Safari 或更新版本的 IE 上应该是什么样子。

这是怎么回事?有谁知道我该如何解决这个问题?

最佳答案

要使 z-index 正常工作,元素必须具有非静态定位,例如 relativeabsolute

要解决您的问题,请添加以下内容:

.landing-page-billboard .tout-wrapper {
   ⋮
   position: relative;
   z-index: 1;
}

无需为 z-index 数字而疯狂。 1 就足够了:)

关于css - IE 10 Html 5 视频叠加文本(z-index),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38415134/

相关文章:

css - 如何将图像放在 li 中的图像上(悬停时)更改其 z-index

iphone - 如何在 UIPopoverController 之上添加 View

css - 使用 .css 文件不显示图像

html - 需要内部 div 在容器 div 中顶部对齐

css - 打印样式表 - Webkit 与 Gecko/IE 中的打印页面宽度不同

html - IE <DOCTYPE html> 默认为 quirksmode

css - 背景中的 Flash 电影和 Chrome 中固定的位置 => 不良行为

html - 显示来自 facebook 图表的图像出现在顶部的边缘。为什么?

HTML 电子邮件 - Firefox 和 PC 上的 hotmail 中的单元格中的额外填充

html - FireFox - Blinky Hover Div