猫头鹰滑块无法在线工作,但是当我在localhost中尝试它时,它正在工作。请帮忙!谢谢。这是链接http://mobile.best0709.cafe24.com/pls.html 我把它插入韩国CMS购物中心。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Owl Carousel - One slide</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="jQuery Responsive Carousel - Owl Carusel">
<meta name="author" content="Bartosz Wojciechowski">
<!-- Owl Carousel Assets -->
<link href="/owl.carousel.css" rel="stylesheet">
<link href="/owl.theme.css" rel="stylesheet">
<script src="/jquery-1.9.1.min.js"></script>
<script src="/owl.carousel.min.js"></script>
<script src="/owl.carousel.js"></script>
<style>
#owl-demo .item img{
display: block;
width: 100%;
height: auto;
}
</style>
<script>
$(document).ready(function() {
$("#owl-demo").owlCarousel({
navigation : true,
slideSpeed : 300,
paginationSpeed : 400,
singleItem : true,
autoPlay : 1000
// "singleItem:true" is a shortcut for:
// items : 1,
// itemsDesktop : false,
// itemsDesktopSmall : false,
// itemsTablet: false,
// itemsMobile : false
});
});
</script>
</head>
<body>
<div id="demo">
<div class="container">
<div class="row">
<div class="span12">
<div id="owl-demo" class="owl-carousel">
<div class="item"><img src="/web/upload/slider-011.png" width="100%" alt=""></div>
<div class="item"><img src="/web/upload/slider-011.png" width="100%" alt=""></div>
<div class="item"><img src="/web/upload/slider-011.png" width="100%" alt=""></div>
</div>
</div>
</div>
</div>
</div>
<!-- Demo -->
enter code here
</body>
</html>
答案 0 :(得分:2)
所以,是的,您的代码中存在一些冲突问题。
<script type="text/javascript" src="http://mobile.best0709.cafe24.com/ind-script/optimizer.php?filename=2989881215a2d3fbb5b7fc82d14d65358165348d_1411447623&type=js&"></script>
上面的文件会导致冲突。如果删除此文件,则代码可以正常工作。
演示:http://jsfiddle.net/v2z46gf5/1/
如果您包含此文件,则代码无效: