.table-container {
width: 100%;
height: 100%;
overflow: auto;
}
/* 首列固定 */
.table-container thead tr > th:first-child,
.table-container tbody tr > td:first-child {
position: sticky;
left: 0;
z-index: 1;
}
/* 表头固定 */
.table-container thead tr > th {
position: sticky;
top: 0;
z-index: 2;
}
/* 表头首列强制最顶层 */
.table-container thead tr > th:first-child {
z-index: 3;
}
css固定头部和首列
- 01 css固定头部和首列2022-03-21
- 02 Android开发常用的adb命…2022-03-21
- 03 Spring MVC获取请求的I…2022-03-21
- 04 k8s node节点删除并重新…2022-03-21
- 05 if 判断语句2022-03-21
- 06 thinkphp5 多表查询条件…2022-03-21
- 07 java.lang.ClassCastEx…2022-03-21
- 08 南大通用GBase8s 常用S…2022-03-21
- 09 【Matplotlib】plt.ims…2022-03-21
- 010 微信小程序获取想一个页…2022-03-21
- 01抖音号怎么查别人电话2022-05-22
- 02抖音怎么发长电视剧2022-05-22
- 03抖音怎么发图片作品2022-05-22
- 04抖音剪映怎么用2022-05-22
- 05在抖音怎么剪辑短视频教…2022-05-22
- 06怎么剪辑别人的抖音2022-05-22
- 07在抖音怎么剪前面那一段…2022-05-22
- 08在抖音怎么做自己的表情…2022-05-22
- 09抖音怎么直播电影2022-05-22
- 010新手抖音发视频的最佳时…2022-05-22