Fancybox不在线工作

时间:2015-04-16 11:41:30

标签: jquery twitter-bootstrap fancybox

我使用fancybox插件为我的bootstrap网站,一切正常,在我的本地主机上。当我在线发布我的网站时,插件停止工作,当我点击图像时,它只是在另一面打开。

            <!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Overwrite stylesheet -->
<link rel="stylesheet" href="css/style.css">
<!-- Fancybox stylesheet -->
<link rel="stylesheet" href="js/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<!-- jQuery -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<!-- Fancybox JS -->
<script type="text/javascript" src="js/fancybox/source/jquery.fancybox.pack.js"></script>
</head>
<body>

                CONTENT HERE
                CONTENT HERE
                CONTENT HERE
                CONTENT HERE

         <!-- Latest compiled and minified JavaScript -->   
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
 <!-- Logo fadeIn -->  
<script src="js/logo.js"></script>
 <!-- Swap content myWork -->  
<script src="js/swapcontent.js"></script>
 <!-- Scroll Animation -->  
<script src="js/scroll.js"></script>
 <!-- Contact me -->  
<script src="/js/jqBootstrapValidation.js"></script>
<script src="/js/contact_me.js"></script>
<script>
        $(document).ready(function() {
            $('.fancybox').fancybox();
        });
    </script>
</body>
</html>

0 个答案:

没有答案