![](/img/trans.png)
[英]How can I replace the default mobile friendly scrollbar with a standard browser scrollbar
[英]How can i use mCustomScrollbar instead of the default browser scrollbar?
我使用了這段代碼:
$("body").mCustomScrollbar({
theme: "3d-thick-dark",
scrollButtons: { enable: true }
});
mcustomscrollbar 作用於其他元素。 但不適用於主體或 html 元件!
問題解決了。 我只需要在 Css 中使用以下代碼。
html, body {
height: 100%;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.