阴影在滚动时显示在粘性表列的右侧

问题描述 投票:1回答:1

我目前通过将border-collapse: separate应用于tableborder-right: dashed 1px #dddddd以及position: stickyleft: 0应用于td获得第一张图像的外观:

enter image description here

[水平滚动时,是否有一种纯CSS方式使阴影显示如下:

enter image description here

css html-table box-shadow
1个回答
0
投票

[没有纯CSS方法来检测position: sticky元素。但是,有一种方法可以用JS检测它并与它上的任何元素进行交互。

© www.soinside.com 2019 - 2024. All rights reserved.