【问题标题】:Position absolute dropdown over position sticky column位置粘性列上的位置绝对下拉列表
【发布时间】:2020-04-10 00:42:48
【问题描述】:

有没有办法在带有 css 的位置粘性列的顶部有一个绝对定位的下拉滚动?

想要的效果是让savings 列仍然滚动到后面,但在month 列的顶部有my dropdown

codepen

【问题讨论】:

    标签: html css scroll css-position sticky


    【解决方案1】:

    我希望我正确理解了意图:

    您可以将z-index: 1; 添加到table th,并为th:first-child 增加z-index(例如z-index: 2;)。

    希望这会有所帮助!

    【讨论】:

    猜你喜欢
    • 2015-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-07
    • 2015-06-18
    • 2021-08-28
    • 2011-02-09
    • 1970-01-01
    相关资源
    最近更新 更多