Bootstrap Carousel not sliding on Safari web browser and iPad/iPhone

谁说胖子不能爱 提交于 2019-12-24 14:23:05

问题


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

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');

回答1:


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">&nbsp;</div>


来源:https://stackoverflow.com/questions/27417877/bootstrap-carousel-not-sliding-on-safari-web-browser-and-ipad-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!