繁体   English   中英

Internet Explorer 8兼容性jQuery

[英]Internet Explorer 8 Compatibilty jQuery

IE 8错误

嗨,我只是想知道是否有人可以帮我这个忙,我一直在IE8中获取它,我一直在通过jQuery并检查了所有错误,我确实有很多,在选项之后,在括号之后,但是无论我尝试什么,我都无法识别如下的$代码...

$(document).ready(function() {


    /* --------------------------------------------------------------------------- */
    /*  1.  Main Slider (Revolution Slider)
    /* --------------------------------------------------------------------------- */

    $('.revslider').revolution( {  <-- THIS IS LINE 31
        delay                 : 9000,
        startwidth            : 1120,
        startheight           : 535,

        onHoverStop           : "on",                   // Stop Banner Timet at Hover on Slide on/off

        thumbWidth            : 100,                    // Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
        thumbHeight           : 50,
        thumbAmount           : 3,

        hideThumbs            : 200,
        navigationType        : "none",                 //bullet, thumb, none, both  (No Shadow in Fullwidth Version !)
        navigationArrows      : "verticalcentered",     //nexttobullets, verticalcentered, none
        navigationStyle       : "round",                //round,square,navbar

        touchenabled          : "on",                   // Enable Swipe Function : on/off

        navOffsetHorizontal   : 0,
        navOffsetVertical     : 20,

        stopAtSlide           : -1,                     // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
        stopAfterLoops        : -1,                     // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic

        fullWidth             : "on",

        shadow                : 0
    });

您可以使用jQuery代替$ ,从而导致

jQuery(document).ready(function() {
    jQuery('.revslider').revolution( {
        ...

另请注意, jQuery 2.x不支持IE8- 请参见此处

您需要使用jQuery 1.x来支持IE6 +。

还要检查您是否正确包含了脚本-看到以下问题: $(document).ready()如何在IE 8中工作?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM