css - Responsive table scrollbar overlaps fixed header
问题描述
I’m having a problem in which I hope some of you know the solution.
I’m making a website responsive en for mobile the header will go to the bottom of the screen. So far no problems. On some of the pages they use tables, which get a horizontal scrollbar on mobile (bootstrap 4 – responsive tables). When is scroll down the scrollbar of the tables is overlapping my fixed header.
Is there somehow a solution for this problem? When I check the bootstrap 4 website en check some dashboard themes they made themselves, they have the same problem. (example: https://prium.github.io/falcon/v1.8.0/)
Please let there be a solution for this.
解决方案
添加
z-index:1;
到您的表卡 div
.card.mb-3 {
z-index: 1;
}
推荐阅读
- android - 在加载新的声音文件之前释放 soundPool?
- frontend - 搜索工具:自动定义自己、保存响应并重新发送它们的代理服务器
- instagram - 如何在 wordpress 网站上集成订阅 instagram 按钮
- python - 用于在 Python 中调整实例属性的 EXP 系统(基于文本的 RPG)
- ssas - SSAS多维模式教程第4课,使用NamingTemplate
- python - 模块“X”没有属性“Y”,有时会出现,有时不会
- docker - Rancher 2.5.5 无法启动集群控制器 c-dbk7g:上下文已取消
- android - 如何将数据从 DialogFragment 传递到 android / Kotlin 中的片段
- flutter - 未找到目标文件“lib\main.dart”。扑
- html - 如何使文本长度调整为页面宽度?