Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery循环在chrome和IE中不起作用_Jquery_Cycle - Fatal编程技术网

jQuery循环在chrome和IE中不起作用

jQuery循环在chrome和IE中不起作用,jquery,cycle,Jquery,Cycle,我正在使用以下代码: jQuery(document).ready(function() { jQuery('#slider-box').cycle({ fx: 'fade', speed: '700', timeout: 4000, pager: '#slide-pager'

我正在使用以下代码:

jQuery(document).ready(function() {
                jQuery('#slider-box').cycle({
                    fx:     'fade',
                    speed:  '700',
                    timeout: 4000,
                    pager:  '#slide-pager'
                });
            });
html是:

  • //一些内容
  • //一些内容
  • 这在firefox中运行良好。但不在IE和chrome中工作。 我也试过$sign。但它说函数没有定义,因为我在places中使用jQuery

    他说: 电话号码:135 人物:70 代码:0 错误消息:“此[…].style”为空或不是对象 网址:

    chrome说(开发者工具中的控制台):
    未捕获的TypeError:无法读取null的属性“defaultView”

    javascript没有问题。。也许您应该将jquery更新为最新版本。

    好的,下面是正确的解决方案: 首先,我们需要在wordpress中禁用默认jquery包含,您可以通过以下方式实现: 打开:wp includes/script-loader.php 注释这行:$scripts->add('jquery','/wp includes/js/jquery/jquery.js',false,'1.4.2'); 现在打开themes header.php 并在标题部分中包含该行:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" ></script>
    
    
    
    问题解决了! 干杯
    再次感谢Kim点击我的大脑,朝着这个方向思考

    也许这应该是一个评论谢谢老兄,我已经链接到了。它解决了我的问题。