html - 如何删除 div 中的水平滚动条?

标签 html css overflow horizontal-scrolling

当我设置 overflow: scroll 时,我得到水平和垂直滚动条。

有没有办法去除div中的水平滚动条?

最佳答案

overflow-x: hidden;

关于html - 如何删除 div 中的水平滚动条?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4405954/

相关文章:

overflow - 当 DIV 溢出-y :scroll is scrolled 时,使用scrollTop() 移动 DIV

html - 在 HTML 页面上不使用滚动条进行滚动

javascript - 带有 Knockout 的 HTML 实体

javascript - 使用 javascript 将样式值重置为先前的声明

javascript - 在下拉菜单上应用链接但下拉菜单在移动设备上不起作用

javascript - Bootstrap v4 : text-only carousel only center text upon sliding completion (sticked to the top otherwise)

html - 确保内容长度未知的水平对齐 DIV 的 block 高度相似

javascript - 如何让文字淡出

javascript - 当表格可见时隐藏链接

html - Bootstrap hidden-sm-down 不工作