我需要删除水平滚动条溢出< DIV> [英] I need to remove the Horizontal Scrollbar on an overflown <DIV>
本文介绍了我需要删除水平滚动条溢出< DIV>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经定义了一个CSS属性overflow设置为scroll的标签。这给了我的垂直和水平滚动条。我只想要垂直滚动条。我应该怎么办?
I have defined a tag with a CSS attribute "overflow" set to "scroll". This is giving me both the vertical and the horizontal scroll bars. I only want the vertical scroll bar. What should i do?
推荐答案
您可以尝试使用
overflow-y: scroll;
这将给你一个垂直滚动条...
This will give you a vertical scroll-bar...
使用
overflow-y: auto;
只有在必要时才会显示滚动条。
will only show the scrollbar if it is necessary.
这篇关于我需要删除水平滚动条溢出< DIV>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文