html - 固定列内的下拉菜单(使用位置粘性)停留在列下
问题描述
固定列内的下拉菜单(使用粘性位置)保留在列下方。
你可以在这里看到问题:https ://codepen.io/em-Omr/pen/zYddEjr
table th, table td{
white-space: nowrap;
}
table thead tr th:last-of-type, table tbody tr td:last-of-type{
background-color:#fff;
position: sticky;
right: 0;
z-index: 9;
}
table tbody tr td:last-of-type{
background-color: red;
}
.dropdown-menu{
z-index: 10;
}
解决方案
推荐阅读
- bash - 如何通过cygwin终端提取zip文件?
- javascript - Webpack生产模式下JS错误但开发模式下没有 - 帮我找出原因
- java - 如何在android中导入特定版本的fabric
- mysql - 在 mysql 上从拉丁语转换为 UTF-8 - 具有特殊字符的密码会发生什么?
- android - RecyclerView插入动画不显示
- ckeditor5 - Ckeditor 5 如何以编程方式触发复制、剪切、粘贴事件
- php - 带有钠整数错误的PHP random_bytes
- java - 从 MainTableEntity 引用 MasterDataEntity 的外键具有错误的列数
- excel - 如果是假期,则查找上一个工作日
- tizen - Tizen 模拟器 - 没有可安装的平台