[英]Bootstrap Carousel not sliding on Safari web browser and iPad/iPhone
Its sliding on other browser, but in Safari it change the image but not sliding.它在其他浏览器上滑动,但在 Safari 中它改变了图像但不滑动。
I tried this code and also transition.js我试过这段代码和 transition.js
$(document).ready(function() {
$('#Carousel').carousel({
interval: 1000
});
});
[data-slide-to] {
cursor: pointer;
}
$('.carousel').carousel()
$('.carousel').carousel('cycle');
A little late ... but i fixed it by placing a block element with negative margin into each carousel item. 有点晚了...但是我通过在每个轮播项目中放置一个具有负边距的块元素来修复它。
like so: 像这样:
<div style="margin: 0 -5px"> </div>
The solution to this problem is quite simple.这个问题的解决方案非常简单。 All animations on iphone are sometimes blocked because of the accessibility settings .
由于辅助功能设置,iphone 上的所有动画有时都会被阻止。
You have to go to:您必须拨打 go 至:
settings > accessibility > animation
Then uncheck " Reduce animations ".然后取消选中“减少动画”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.