<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>左右滑动分页</title>
<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">
<!--标准mui.css-->
<link rel="stylesheet" type="text/css" href="css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body class="mui-ios mui-ios-9 mui-ios-9-1">
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">左右滑动分页</h1>
</header>
<div class="mui-content">
<div class="mui-slider" data-slider="1">
<div class="mui-slider-group mui-slider-loop" style="transform: translate3d(-360px, 0px, 0px) translateZ(0px);" >
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">Color of SIP CBD</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">静静看这世界</div></a></li>
</ul>
</div>
<div class="mui-slider-item ">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">想要一间这样的木屋,静静的喝咖啡</div></a></li>
</ul>
</div>
<div class="mui-slider-item">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">Color of SIP CBD</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">静静看这世界</div></a></li>
</ul>
</div>
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">想要一间这样的木屋,静静的喝咖啡</div></a></li>
</ul>
</div>
</div>
</div>
<div class="mui-slider-indicator" style="position: static;background-color: #fff;">
<span class="mui-action mui-action-previous mui-icon mui-icon-back"></span>
<div class="mui-number">
<span>1</span> / 2
</div>
<span class="mui-action mui-action-next mui-icon mui-icon-forward"></span>
</div>
</div>
<script src="js/mui.min.js"></script>
<script>
mui.init();
// mui('.mui-slider').slider();
</script>
</body>
</html>
2 个回复
9***@qq.com (作者)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>左右滑动分页</title>
<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">
<!--标准mui.css-->
<link rel="stylesheet" type="text/css" href="css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body class="mui-ios mui-ios-9 mui-ios-9-1">
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">左右滑动分页</h1>
</header>
<div class="mui-content">
<div class="mui-slider" data-slider="1">
<div class="mui-slider-group mui-slider-loop" style="transform: translate3d(-360px, 0px, 0px) translateZ(0px);" >
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">Color of SIP CBD</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">静静看这世界</div></a></li>
</ul>
</div>
<div class="mui-slider-item ">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">想要一间这样的木屋,静静的喝咖啡</div></a></li>
</ul>
</div>
<div class="mui-slider-item">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">Color of SIP CBD</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">静静看这世界</div></a></li>
</ul>
</div>
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div></a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-6"><a href="#"><img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">想要一间这样的木屋,静静的喝咖啡</div></a></li>
</ul>
</div>
</div>
// mui('.mui-slider').slider();
</script>
</body>
</html>
阿鱼 - .net 开发
vue + silder 之后
transform: translate3d(-360px, 0px, 0px) 一起就这个样子了
transform: translate3d(px, 0px, 0px) 无法切换了,不知是什么原因,也不知如何解决!难道vue 与 slider 不可调和的冲突