以下是我尝试主题滚动条:
/* width */
::-webkit-scrollbar {
width: 10px !important;
}
/* Track */
::-webkit-scrollbar-track {
background: #333 !important;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #111 !important;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #111 !important;
}
但是,这没有产生任何影响,我仍然得到相同的默认Windows / chrome滚动条。
有人可以建议。
在Ionic GitHub存储库中存在一个未解决的问题,截至目前,它尚未解决(不知道是否可能):https://github.com/ionic-team/ionic/issues/17685