gpt4 book ai didi

html - 固定元素在 Internet Explorer 9 中消失

转载 作者:行者123 更新时间:2023-11-28 13:21:08 24 4
gpt4 key购买 nike

我有一个在 ASP.NET MVC 中构建的网页,它使用固定定位,允许用户在滚动时始终看到行标题。

使用 Internet Explorer 9 时,固定元素会在滚动时消失并重新出现在 View 中。我已经在 Chrome 中测试过,它在那里可以正常工作。我还确保 IE 使用的是标准模式,而不是怪癖。

这个 jsfiddle 演示了我的问题:http://jsfiddle.net/zache/43zCf/

 Doesn't fit the character limit.

最佳答案

z 索引元素的父级未定位。您必须添加到表 position: inherit; 所以表格的 css 将是:

table {
position: inherit;
white-space: nowrap;
border-collapse: collapse;
}

关于html - 固定元素在 Internet Explorer 9 中消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15763304/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com