我正在尝试创建一个旋转木马,并在悬停时将标准光标替换为左/右箭头按钮,但找不到任何关于如何实现这一点的参考
$(function(){
var owl = $('.owl-carousel');
owl.owlCarousel({
autoplay: 2000,
items:1,
loop: true,
onInitialized : counter, //When the plugin has initialized.
onTranslated : counter //When the translation of the stage has finished.
});发布于 2019-02-13 10:13:12
对于1.3版
$(document).ready(function() {
$("#owl-example").owlCarousel({
items:1,
loop:true,
autoplay:true,
autoplayTimeout:1000,
autoplayHoverPause:true,
navigation : true,
navigationText : ['<span class="fa-stack"><i class="fa fa-circle fa-stack-1x"></i><i class="fa fa-chevron-circle-left fa-stack-1x fa-inverse"></i></span>','<span class="fa-stack"><i class="fa fa-circle fa-stack-1x"></i><i class="fa fa-chevron-circle-right fa-stack-1x fa-inverse"></i></span>'],
});
});https://stackoverflow.com/questions/54661411
复制相似问题