简体   繁体   English

为什么使用溢出会给我这个问题?

[英]Why does using overflow give me this problem?

I have got a table with a scroll with the style "overflow-x:visible" to the scroll.我有一张带有滚动条的表格,滚动条的样式为“overflow-x:visible”。 But when I move the horizontal scroll It look like this 1 I tried applying position: absolute and the overflow problem was solved but the table pasted with the bottom of the top div and the first table header's name dissapear, looking like this 2但是当我移动水平滚动时它看起来像这样1我尝试应用 position: absolute 并且溢出问题得到了解决但是表格粘贴在顶部 div 的底部并且第一个表格标题的名称消失了,看起来像这样2

Thanks Mayank for your answer, I make the changes but the problem persists, because now I have two horizontal scrollbars, one always visible but too short to show all the table and the other only appears on the bottom of the table and it's only visible if you move down using the lateral scrollbar.感谢 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在第二个屏幕截图中,您可以看到在表格顶部您看不到其他列,但滚动条太短无法使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM