Home >Web Front-end >JS Tutorial >What should I do if the mui frame page cannot be scrolled?

What should I do if the mui frame page cannot be scrolled?

小云云
小云云Original
2018-01-27 09:55:392771browse

This article mainly shares with you a solution to the problem that the mui framework page cannot be scrolled (recommended). It has a good reference value and I hope it will be helpful to everyone. Let’s follow the editor to take a look, I hope it can help everyone.

You only need to initialize it mui.init();

Add the following code:

(function($){
 $(".mui-scroll-wrapper").scroll({
  //bounce: false,//滚动条是否有弹力默认是true
  //indicators: false, //是否显示滚动条,默认是true
 }); 
})(mui);

Related recommendations:

javascript - How to solve the problem that dynamically inserted elements in iscroll.js scrolling container cannot be scrolled?

The above is the detailed content of What should I do if the mui frame page cannot be scrolled?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn