请您查看This Demo并告诉我为什么pause
选项在鼠标指针以js
方式进入轮播时无法正常工作:
$(function(){
$("#carousel-example-generic").carousel({
pause: "hover"
});
});
或data-pause
属性方式为
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-pause="hover">
由于
答案 0 :(得分:0)
我检查了你的bootply文件,它运行正常吗?你有没有包含jquery文件?
尽管你可以这样试试。
$(document).ready(function(){
$('#carousel-example-generic').carousel({
pause: "hover"
});
});
我希望它可以帮助你。