【发布时间】:2015-05-06 19:00:47
【问题描述】:
我已经使用 Web-kit 编写了 CSS 中滚动条设计的代码,该工具在 chrome 和 safari 上运行良好,但我需要 Fire Fox 和 IE 的相同设计。 IE 滚动条宽度不会改变。我在 Google 上搜索过,但没有找到合适的解决方案。
我找到了以下代码,但没有工作
@-moz-document url-prefix(http://),url-prefix(https://) {
scrollbar {
-moz-appearance: none !important;
background: rgb(0,255,0) !important;
}
thumb,scrollbarbutton {
-moz-appearance: none !important;
background-color: rgb(0,0,255) !important;
}
thumb:hover,scrollbarbutton:hover {
-moz-appearance: none !important;
background-color: rgb(255,0,0) !important;
}
scrollbarbutton {
display: none !important;
}
scrollbar[orient="vertical"] {
min-width: 15px !important;
}
}
我也想改变IE滚动条的宽度,我该怎么做
如果有办法在 CSS 中执行此操作,我不想使用 JQuery 或其插件,请告诉我非常感谢。
【问题讨论】:
-
早就说过不要乱用用户界面,比如滚动条,我同意。
-
我没有找到我在问题中所说的有用的答案
-
这些回复建议在我不想使用的地方使用 jquery 插件,我只需要 css,这些回复是 2012 年的,这是 2015 年的时代,应该改变技术先进
标签: javascript jquery css