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.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
Wrap the table in a DIV, set with the following style:
First, make a
display: block
of your tablethen, set
overflow-x:
toauto
.Nice and clean. No superfluous formatting.
Here are more involved examples with scrolling table captions from a page on my website.
I couldn't get any of the above solutions to work. However, I found a hack:
Use the CSS attribute "overflow" for this.
Short summary:
e.g.