-1

我使用了这段代码:

$("body").mCustomScrollbar({
      theme: "3d-thick-dark",
      scrollButtons: { enable: true }
});

mcustomscrollbar 作用于其他元素。但不适用于 body 或 html 元素!

4

1 回答 1

0

问题解决了。我只需要在 Css 中使用以下代码。

html, body {
  height: 100%;
}
于 2019-11-11T16:57:24.700 回答