强制滚动条 [英] force scrollbar on Safari
问题描述
有没有办法强制垂直滚动条在Safari狮子会上显示。
它只显示如果你单击页面的最右边。我有一个元素,其中我有overflow-y:auto但在Safari它不显示,直到你单击元素的边缘。
Is there a way to force the vertical scrollbar to show on Safari Lion. It only shows if you click the far right of a page. I have an element where I have overflow-y:auto but in Safari it doesn't show until you click the edge of the element.
推荐答案
Ok在这个网站上找到这个网址 http://css-tricks.com/custom-scrollbars- in-webkit /
这将使其显示在Safari Lion中
Ok found this online at this site http://css-tricks.com/custom-scrollbars-in-webkit/ This will make it show up in Safari Lion
::-webkit-scrollbar {
-webkit-appearance: none;
width: 8px;
}
::-webkit-scrollbar-track {
background-color: rgba(57,57,57, .6);
border-radius: 8px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
background-color: rgba(156, 156, 156, .6);
}
显然,您需要将属性更改为您想要的属性。
再次这是为Safari作为overflow-y:scroll不强迫它显示。
Obviously you will need to change the properties to suite what you want. Again this is for Safari as overflow-y:scroll does not force it to show.
这篇关于强制滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!