iscroll.js移动端滚动插件

来源:互联网 发布:写五线谱的软件 编辑:程序博客网 时间:2024/05/16 12:55

<!DOCTYPE html><html><head>    <meta charset="utf-8">    <title>iscroll.js移动端滚动插件</title>    <style type="text/css">      body {margin: 0;}      .wrapper {display:block;width: 100%; height: 102px;background: #ddd;overflow: hidden;}      .wrapper ul {display: inline-block;margin: 0;padding: 0 10px;white-space: nowrap;}      .wrapper li {display: inline-block;width: 200px; height: 100px;border: 1px solid green;}      .wrapper2 {position: absolute;top: 102px;bottom: 50px; width: 100%; overflow: hidden;background: #f8f8f9;}      .wrapper2 ul {margin: 0;padding: 0 10px; }      .wrapper2 li {height: 100px;border: 1px solid green;list-style: none}      .footer {position: absolute;bottom: 0;left: 0;width: 100%; height: 50px; background: #444;}    </style>    </head>    <body>    <div id="wrapper" class="wrapper" style="touch-action:none;">         <ul>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>                     </ul>    </div>    <div id="wrapper2" class="wrapper2" style="touch-action:none;">         <ul>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>            <li>...</li>                     </ul>    </div>    <div class="footer"></div>    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>    <script src="https://cdn.bootcss.com/iScroll/5.2.0/iscroll.js"></script>    <script type="text/javascript">      $(function() {          var myScroll = new IScroll('#wrapper', { scrollX: true, click: true});          var myScroll2 = new IScroll('#wrapper2', {click: true});      });    </script>    </body></html>





阅读全文
'); })();
1 0
原创粉丝点击
热门IT博客
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 日产天逸 天逸报价 天逸集团 天逸f41 天逸湾 天逸200 天逸先生 天逸ad3 天逸公园 联想 天逸 天逸家庭影院 天逸音响怎么样 天逸公考 天逸怎么样 天逸华府 天逸警示灯 金地天逸二期 没钱吕天逸 有钱吕天逸 联想i5笔记本 吕天逸 天逸兰 祁天道 天道天骄 天道酬勤 祁天道事件 天道亲闺女 天道系统 罚恶天道令 烈阳天道 万界天道群 吾为天道 天道惊鸿 我真是天道 天道2 天道是什么 天道图片 天道手游 天道在线 天道好看吗 天道计然