Home>Article>Web Front-end> How to realize scroll bar not occupying height in css
Css method to implement scroll bars that do not occupy height: 1. Open the corresponding HTML file; 2. Find the original code "overflow-x: auto;"; 3. Change the "overflow-x: auto;" attribute Change the value in to "overflow-x: overlay;" to prevent the scroll bar from occupying the position.
css: overlay makes the scroll bar not occupy the position
How to make the scroll bar not occupy the height in css? Original code:overflow-x: auto;Original effect: The scroll bar occupies the height and is located below the table. Modified code:
overflow-x: overlay;The scroll bar is superimposed on the table, but because the scroll bar has no transparency set, it will block the data. We Scroll bars can be styled through css. Recommended study: "
css video tutorial"
The above is the detailed content of How to realize scroll bar not occupying height in css. For more information, please follow other related articles on the PHP Chinese website!