Is it possible to allow only a horizontal scroll bar when using overflow:auto (or scroll)?
相关问题
- 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
You should use only
overflow-y:hidden;
- Use this for hiding the Vertical scrolloverflow-x:auto;
- Use this to show Horizontal scrollLuke has mentioned as both hidden. so I have given this separately.
These two CSS properties can be used to hide the scrollbars:
overflow: auto;
overflow-y: hidden;
For IE8: -ms-overflow-y: hidden;
Or Else :
To hide X:
To hide Y:
If you want to accomplish the same in Gecko (NS6+, Mozilla, etc) and IE4+ simultaneously, I believe this should do the trick:V
This will be applied to entire body tag, please update it to your relevant css and apply this properties.
Add the following: