我需要在我的网站上添加猫头鹰旋转木马
我按照说明使用css作为默认主题
它工作得很好。然后突然(没有更改代码)默认主题停止工作(导航没有主题)...
我一直试图解决这个问题,但我已经失去了理智......我甚至将变化恢复到了我确定它有效的地步!
它不是关于浏览器,因为我甚至将它上传到我的服务器上......
我的代码:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Light Coorporation - Photo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
<!-- Bootstrap Core CSS -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="../css/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<script src="../js/jquery.js" language="javascript"></script>
<script src="../js/jquery-ui.js" language="javascript"></script>
<script src="../js/jquery.stellar.js" language="javascript"> </script>
<script src="../js/global.min.js" language="javascript"></script>
<script src="../js/bootstrap.min.js" language="javascript"></script>
<script src="../js/owl.carousel.min.js"></script>
<script src="../js/owl.custom.min.js"></script>
<link href="../css/owl.carousel.css" rel="stylesheet">
<link rel="stylesheet" href="../css/owl.theme.default.min.css">
</head>
<body>
<?php include '../include/fixed_menu.php' ?>
<br><br><br><br><br><br>
<div class="container ">
<div class="owl-carousel owl-slider-custom">
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
<div class="item"><img src="../images/murmur.jpg"></div>
</div>
</div>
<br><br>
</body>
</html>
和js:
$(document).ready(function () {
$('.owl-carousel').owlCarousel({
loop:true,
margin:15,
center: true,
merge: true,
responsiveClass:true,
autoWidth: true,
responsive:{
0:{
items:1,
mergeFit: true,
nav:true
},
600:{
items:1,
mergeFit: true,
nav:true
},
1000:{
items:1,
mergeFit: true,
nav:true
}
}
});
});
它曾经工作了一段时间然后停止了似乎很奇怪...... 任何帮助都会得到赞赏 保佑!
答案 0 :(得分:3)
如果这有助于某人: 从:http://www.owlcarousel.owlgraphic.com/docs/api-classes.html
请注意:<div class="owl-carousel owl-theme owl-loaded">
答案 1 :(得分:1)
显然我的css版本错了......找到合适的版本并不容易,但我发现它已经过了https://github.com/OwlFonk/OwlCarousel2/archive/master.zip