<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
你好,
我有一个标题,它的位置是固定的。当我滚动页面时,下面的段落会降低其不透明度。当段落上升时,它覆盖标题而不是“在它下面”。我该如何修复它。
非常感谢
最佳答案
尝试将 z-index 添加到您的 header 。
z-index: 9999;
标题 z-index 应该大于内容的 z-index。 希望这有帮助
关于javascript - 修复了 css 中的元素溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43154435/