是否“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 :)