【问题标题】:Why does using overflow give me this problem?为什么使用溢出会给我这个问题?
【发布时间】:2020-08-24 09:36:49
【问题描述】:

我有一张带有滚动条的表格,滚动条的样式为“overflow-x:visible”。但是当我移动水平滚动时它看起来像这样1 我尝试应用 position : absolute 并解决了溢出问题,但表格粘贴在顶部 div 的底部和第一个表格标题的名称消失,看起来像这样2

【问题讨论】:

    标签: css html-table scrollbar css-position overflow


    【解决方案1】:

    感谢 Mayank 的回答,我进行了更改,但问题仍然存在,因为现在我有两个水平滚动条,一个始终可见但太短而无法显示所有表格,另一个仅出现在表格底部,它是仅当您使用横向滚动条向下移动时才可见。

    In the first screenshot, you can see the double scroll

    In the second screenshot, you can see that in the top of the table you can't see the other columns but the scrollbar is to short to use it

    【讨论】:

    • 如果你在这里分享你的代码,那会更好地理解这个问题。
    猜你喜欢
    • 1970-01-01
    • 2021-04-06
    • 2021-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-18
    相关资源
    最近更新 更多