解决方法:
一、在内容容器加上id,然后通过JS控制
<p class="mui-content mui-scroll-wrapper" id="scr1">
JS部分
<script> mui('#scr1').scroll(); </script>
二、利用创建子页面的方式:
mui.init({ subpages:[{ url:'index.html', //要引入的页面 id:'index.html' , //要引入页面的标志 style:{ top:'50px', //页面顶部的位置 bottom:'0px' } extrax{} //额外扩展参数 }] });
在index.html页面中就可以写内容了,而且会出现滚动条。
下载本文