css - How to make table headers non scrollable bootstrap vue
问题描述
I am new to bootstrap vue .I have used bootstrap-vue 1.4 for my whole application used b-table for my table but the table headers also move when scrolled i want to make them sticky or non scrollable i found that with the new bootstrap-vue 2.0 there is an option sticky-header but i cannot use that because i might break my application is there any way to make the headers sticky using bootstrap-vue 1.4
解决方案
.table.b-table>thead>tr>th {
background-color: white;
position: sticky;
position: -webkit-sticky;
top: 0;
z-index: 2;
}
这个东西对我有用,在 app.vue 中使用它应该修复所有的 b 表
推荐阅读
- css - 使用 CSS 选择 Squarespace 元素作为显示大小
- java - Android Studio:Resources.NotFoundException
- android - Android Volley 请求在模拟器中有效,但在设备中无效
- sql - SQL条件数据将表B复制到现有表A中的新列
- javascript - 在远程 MQ 上启动应用程序时 IBM MQ 更改用户 ID
- typescript - 在环回 4 中实现 API 密钥
- powerbi - 12M 测量 Power BI DAX 中的总问题
- django - /pre_pred/ 处的 AttributeError
- c# - 如何将看似自调用的 F# lambda 转换为 C#?
- r - 如何使用特定时间窗口调用函数?