将水平滚动条添加到html表
问题描述:
有一种方法可以将水平滚动条添加到HTML表格中?我实际上需要它可以垂直和水平滚动取决于表如何增长,但我不能得到任何滚动条出现。
Is there a way to add a Horizontal scrollbar to an HTML table? I actually need it to be scrollable both vertically and horizontally depending on how the table grows but I can't get either scrollbar to appear.
答
您尝试过CSS 溢出
属性吗?
Did you try CSS overflow
property?
overflow: scroll; /* Scrollbar are always visible */
overflow: auto; /* Scrollbar is displayed as it's needed */
UPDATE
作为其他用户指出,这是不够的以添加滚动条。结果
所以,请看到并给予好评的意见和下面的答案
UPDATE
As other users are pointing out, this is not enough to add the scrollbars.
So please, see and upvote comments and answers below.