簡體   English   中英

如何使用 mCustomScrollbar 代替默認的瀏覽器滾動條?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM