强制垂直滚动条在IE8中显示 [英] Force vertical scrollbar to display in IE8
本文介绍了强制垂直滚动条在IE8中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果页面不够长,垂直条不会出现在IE8中。在FF中,有一个解决方法
The vertical bar does not appear in IE8 if the page is not long enough. In FF, there is a workaround for this
html {
overflow: -moz-scrollbars-vertical;
}
我试过下面的IE8: overflow:scroll ;
,但滚动条显示在两侧。我想要它只为垂直而不是水平。
I tried the following for IE8: overflow:scroll;
but the scroll bar appears on both sides. I want it only for vertical and not horizontal. scroll-y does not work.
任何解决方案?
推荐答案
哦想了。
body {
overflow-y: scroll;
}
这篇关于强制垂直滚动条在IE8中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文