【发布时间】:2014-11-02 12:46:55
【问题描述】:
Chrome 处理 position:fixed 元素下方的 z-index 的方式与 Firefox 或 Safari 不同。 -> jsfiddle
从 Adam Spiers 在这里的另一个答案中,我了解到这是由于on mobile WebKit and Chrome 22+, position: fixed always creates a new stacking context, even when z-index is auto。
有解决办法吗?有什么方法可以防止 chrome 创建新的堆叠上下文?替换 position: fixed 几乎不是一种选择,因为它用于修复网站教程软件,该软件使用 z-index 突出显示页面的某些部分。
【问题讨论】:
标签: css google-chrome