是否“overflow-y:scroll”属性帮助防止水平移动在Opera / Safari? [英] Does the "overflow-y: scroll" property help prevent horizontal shift in Opera/Safari?
本文介绍了是否“overflow-y:scroll”属性帮助防止水平移动在Opera / Safari?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在CSS中使用以下内容在Firefox中强制使用垂直滚动条:
I'm using the following in my CSS to force a vertical scrollbar in Firefox:
body {
overflow-y: scroll;
}
这种技术在Safari和Opera上有效吗?有人说,这确实有些人说,否则
Does this technique work in Safari and Opera? Some people say it does and some say otherwise.
推荐答案
的CSS规则溢出-Y:滚动
适用于我:
The CSS rule overflow-y: scroll
works for me in:
- 歌剧10.10
- 谷歌浏览器3.0。 195.38
- 的Mozilla Firefox 3.5.6
和Microsoft Internet Explorer的显然所有版本,其中。滚动条的总是的显示
and obviously all versions of Microsoft Internet Explorer where the scrollbar is always shown.
Safari浏览器和谷歌Chrome都使用相同的视图引擎,所以没准它在Safari的作品,以及:)
Safari and Google Chrome are using the same view engine, so chances are it works in Safari as well :)
这篇关于是否“overflow-y:scroll”属性帮助防止水平移动在Opera / Safari?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文