mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-09-06 11:22:24 +08:00
使用自定义 webkit 滚动条,避免 QWebEngineView 原生滚动条显示(仅在 QWebEnginePage 加载时生效,部分页面动态刷新时滚动条样式不生效) Log: 使用自定义 webkit 滚动条
27 lines
593 B
CSS
27 lines
593 B
CSS
::-webkit-scrollbar {
|
|
width: 12px;
|
|
height: 12px;
|
|
background-color: transparent
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border: 2px solid transparent;
|
|
border-radius: 99px;
|
|
background-clip: padding-box;
|
|
background-color: rgba(80, 80, 80, 0.3);
|
|
-webkit-transition: background 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
transition: background 0.2s cubic-bezier(0.34, 0.69, 0.1, 1)
|
|
}
|
|
|
|
::-webkit-scrollbar-button {
|
|
display: none
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
display: none
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background-color: rgba(80, 80, 80, 0.6)!important
|
|
}
|