-3

你们能告诉我为什么我的滑块不工作吗?我已经在 js fiddle 中包含了所有资源,然后它也不能工作,提供下面的小提琴链接

http://jsfiddle.net/YakV7/2/

实际演示

http://tympanus.net/Development/ParallaxContentSlider/

  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery.cslider.js"></script>
        <script type="text/javascript">
            $(function() {

                $('#da-slider').cslider();

            });
        </script> 
4

1 回答 1

1

这些行是什么意思?

<link rel="stylesheet" type="text/css" href="css/demo.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/modernizr.custom.28468.js"></script>
<script type="text/javascript" src="js/jquery.cslider.js"></script>

将其更改为实际路径。

<link rel="stylesheet" type="text/css" href="http://tympanus.net/Development/ParallaxContentSlider/css/demo.css">
<link rel="stylesheet" type="text/css" href="http://tympanus.net/Development/ParallaxContentSlider/css/style.css">
<script type="text/javascript" src="http://tympanus.net/Development/ParallaxContentSlider/js/modernizr.custom.28468.js"></script>
<script type="text/javascript" src="http://tympanus.net/Development/ParallaxContentSlider/js/jquery.cslider.js"></script>

或添加:

<base href="http://tympanus.net/Development/ParallaxContentSlider/" />

同样的工作小提琴:http: //jsfiddle.net/YakV7/7/

于 2012-12-24T17:02:14.327 回答