【发布时间】:2014-12-08 18:21:53
【问题描述】:
所以我有这个高度封闭的布局(不是我的决定),它包含一个表格,如果需要,它需要在任何方向上滚动。如果兄弟姐妹和父母的位置不是固定的、绝对的和相对的,那么设置高度就不成问题了。
问题在于,一旦.controls div 的高度扩大(当视口调整为更小的尺寸时),滚动条的一部分就会被.footer 覆盖并且无法单击。如果那里有水平滚动条,它也会被完全覆盖。
.filter-table {
position: relative;
top: 0;
left: 0;
width: 100%;
height: calc(100% - 30px); // hmm!
float: left;
overflow: auto;
background-color: rgba(25,125,100,0.1);
}
table {
border-collapse: collapse;
width: 100%;
}
有什么想法吗?
【问题讨论】:
标签: html css responsive-design