Scrollbar working fine in chrome and safari but in mozilla its not working the way it should, below is my code, i could have done this easily using jquery or javaScript but looking for css solution first.
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-button {width: 8px;height:5px;}
::-webkit-scrollbar-track {background:none;}
::-webkit-scrollbar-thumb {background:#000;}
::-webkit-scrollbar-thumb:hover {background:#000;}
Mozilla 不支持自定义 CSS 滚动条,请尝试使用jQuery Scrollbar 之类的插件
::-webkit-scrollbar is only available in WebKit-based browsers (eg, Google Chrome). It is not supported in Firefox, please check here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.