【发布时间】:2016-09-01 10:13:45
【问题描述】:
表格的下拉菜单和表头是绝对定位的。
下拉菜单有“z-index: 20” 标题有“z-index:10” 下拉菜单的“top”和“left”属性在代码中设置。
这里是下拉列表和标题的样式
.data-table-head {
overflow: hidden;
display: flex;
flex-direction: row;
justify-content: flex-end;
flex: 0 0 auto;
height: 24px;
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 12;
}
.custom-select-list {
position: absolute;
margin: 34px 0 0 0;
min-width: 84px;
font-weight: normal;
right: 15px;
-webkit-transform: translate3d(0, 0, 0);
transform: translateZ(1px);
z-index: 10000;
}
下拉菜单应位于表格标题上方。
该问题仅出现在 iOS 设备上的 Safari 中 - 下拉菜单位于标题下方。 有谁知道如何解决这个问题?
【问题讨论】:
-
如果可以的话,你能做小提琴吗?
标签: html css css-position mobile-safari absolute