标签:img 代码 div 苹果 自定义 lists stp scroll tle
ionic中<ion-scroll>设置为左右滚动,苹果手机端触摸到此标签上时无法上下滚动内容。
如下代码:
<ion-scroll direction="x" scrollbar-x="false" style="width:100%">
<ul class="brand-scrollList">
<li ng-repeat="lists in bestProjects" ng-if="$index<10" ng-click="toProject(lists.id)">
<img ng-src="{{lists.image}}" err-src="img/middle.jpg">
<p class="brandName">{{lists.title}}</p>
</li>
</ul>
</ion-scroll>
解决:去掉<ion-scroll>自定义滚动
css:
.scroll-forXY{
overflow-x: scroll;
overflow-y: hidden;
overflow-scrolling: touch;
}
<div class="scroll-forXY">
<ul class="brand-scrollList">
<li ng-repeat="lists in bestProjects" ng-if="$index<10" ng-click="toProject(lists.id)">
<img ng-src="{{lists.image}}" err-src="img/middle.jpg">
<p class="brandName">{{lists.title}}</p>
</li>
</ul>
</div>
ionic中<ion-scroll>设置为左右滚动,苹果手机端触摸到此标签上时无法上下滚动内容
标签:img 代码 div 苹果 自定义 lists stp scroll tle
原文地址:http://www.cnblogs.com/adolfvicto/p/6862768.html