约洛
约洛
  • 发布:2016-03-18 22:05
  • 更新:2016-03-18 22:32
  • 阅读:1746

求助,页面滚动不了

分类:MUI

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title></title>
<script src="js/mui.min.js"></script>
<link href="http://ask.dcloud.net.cn/css/mui.min.css" rel="stylesheet"/>

</head>
<body>
<div class="mui-off-canvas-wrap mui-draggable">
<!--侧滑菜单部分-->
<aside id="offCanvasSide" class="mui-off-canvas-left">
<div id="offCanvasSideScroll" class="mui-scroll-wrapper">
<div class="mui-scroll">
<h1>World</h1>

            </div>  
        </div>  
    </aside>  
    <!--主体部分-->  

    <div class="mui-inner-wrap offCanvasContentScroll">       
        <header class="mui-bar mui-bar-nav">  
            <a href="#offCanvasSide" class="mui-icon mui-action-menu mui-icon-bars mui-pull-left"></a>  
            <a href="#info" id="info" class="mui-icon mui-icon-info-filled mui-pull-right" style="color: #999;"></a>  
            <h1 class="mui-title">刺客信条</h1>  
        </header>  

        <div class="mui-content mui-scroll-wrapper" >     
            <div class="mui-scroll">  
            <ul class="mui-table-view">  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/shuijiao.jpg">  
                    <div class="mui-media-body">  
                        幸福  
                        <p class='mui-ellipsis'>能和心爱的人一起睡觉,是件幸福的事情;可是,打呼噜怎么办?</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/muwu.jpg">  
                    <div class="mui-media-body">  
                        木屋  
                        <p class='mui-ellipsis'>想要这样一间小木屋,夏天挫冰吃瓜,冬天围炉取暖.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  
            <li class="mui-table-view-cell mui-media">  
                <a href="javascript:;">  
                    <img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">  
                    <div class="mui-media-body">  
                        CBD  
                        <p class='mui-ellipsis'>烤炉模式的城,到黄昏,如同打翻的调色盘一般.</p>  
                    </div>  
                </a>  
            </li>  

        </ul>  
            </div>  
        </div>  
    </div>  

</div>  

</body>
<script>
mui.init();
mui.plusReady(function(){

    //区域滚动  
    mui('.mui-scroll-wrapper').scroll({  
        deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006  
    });  

    //图片轮番  
    var gallery = mui('.mui-slider');  
    gallery.slider({  
      interval:5000//自动轮播周期,若为0则不自动播放,默认为0;  
    });  

});  
//处理右上角关于图标的点击事件;  
    var subWebview = null,  
    template = null;  
    document.getElementById('info').addEventListener('tap', function() {  

        if (!(mui.os.plus 
2016-03-18 22:05 负责人:无 分享
已邀请:
约洛

约洛 (作者)

可以了

  • oldsix

    您好,请问您是怎么解决的?我发现加上 mui-draggable这个类主页面就不能滚动了。

    2018-01-30 10:24

该问题目前已经被锁定, 无法添加新回复