提问者:小点点

Owl旋转木马-主题css不适用


我需要添加猫头鹰轮播到我的网站。
我遵循了说明,并使用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
            }
        }
    });
});

这似乎很奇怪,它曾经工作了一段时间,然后就停止了……
任何帮助都将是感激的。
祝福!

演示:“http://bez-granic.eu/lc/photo/”


共1个答案

匿名用户

如果这对某人有帮助,请访问:http://www.owlcarousel.owlgraphic.com/docs/api-classes.html

注意:中的类owl-theme