Bootstrap Carousel无法在Safari Web浏览器和iPad / iPhone上滑动 [英] Bootstrap Carousel not sliding on Safari web browser and iPad/iPhone

查看:150
本文介绍了Bootstrap Carousel无法在Safari Web浏览器和iPad / iPhone上滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它在其他浏览器上滑动,但是在Safari中它改变了图像但没有滑动。

Its sliding on other browser, but in Safari it change the image but not sliding.

我尝试了这段代码,也尝试了transition.js

I tried this code and also 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.

像这样:

<div style="margin: 0 -5px">&nbsp;</div>

这篇关于Bootstrap Carousel无法在Safari Web浏览器和iPad / iPhone上滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆