📜  如何移除水平滚动条但允许垂直滚动 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:51.358000             🧑  作者: Mango

代码示例1
overflow: auto; /* Setting the overflow to auto will automatically put a scrollbar where it is needed */

/* 
But if you insist you do not want an horizontal scrolbar, 
even if there is an overflowing text, you could use this lines of code
*/

overflow-y: scroll;
overflow-x: hidden;