Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.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
Javascript 设置最小宽度时的jquery代码_Javascript_Jquery_Css_Responsive Design - Fatal编程技术网

Javascript 设置最小宽度时的jquery代码

Javascript 设置最小宽度时的jquery代码,javascript,jquery,css,responsive-design,Javascript,Jquery,Css,Responsive Design,我现在用的是当min width设置为768px,换句话说,我想用这个 我不希望sticky.js在最大宽度为768px的手机或设备中工作 我使用这个jquery代码来使用StickyJS jQuery(document).ready(function(){ jQuery("#header").sticky({ className : 'sticky-header' , topSpacing : -45 }); }); 如果需要更多详细信息,请

我现在用的是当min width设置为768px,换句话说,我想用这个 我不希望sticky.js在最大宽度为768px的手机或设备中工作

我使用这个jquery代码来使用StickyJS

jQuery(document).ready(function(){
    jQuery("#header").sticky({
        className : 'sticky-header' ,
        topSpacing : -45
    });
}); 

如果需要更多详细信息,请告诉我

使用条件,并检查设置了最小宽度样式的任何元素

jQuery(function($){
    var min_width = parseInt( $('body').css('min-width'), 10 );

    if ( min_width > 768 ) {
        $("#header").sticky({
            className : 'sticky-header' ,
            topSpacing : -45
        });
    }
}); 

使用条件,并检查设置了最小宽度样式的任何元素

jQuery(function($){
    var min_width = parseInt( $('body').css('min-width'), 10 );

    if ( min_width > 768 ) {
        $("#header").sticky({
            className : 'sticky-header' ,
            topSpacing : -45
        });
    }
}); 

使用条件,并检查设置了最小宽度样式的任何元素

jQuery(function($){
    var min_width = parseInt( $('body').css('min-width'), 10 );

    if ( min_width > 768 ) {
        $("#header").sticky({
            className : 'sticky-header' ,
            topSpacing : -45
        });
    }
}); 

使用条件,并检查设置了最小宽度样式的任何元素

jQuery(function($){
    var min_width = parseInt( $('body').css('min-width'), 10 );

    if ( min_width > 768 ) {
        $("#header").sticky({
            className : 'sticky-header' ,
            topSpacing : -45
        });
    }
}); 

对不起,阿德内奥,我错了。现在插件完全不工作了。请看这个bloodmyst.com抱歉,adeneo,我错了。现在插件完全不工作了。请看这个bloodmyst.com抱歉,adeneo,我错了。现在插件完全不工作了。请看这个bloodmyst.com抱歉,adeneo,我错了。现在插件完全不工作了。请看这个bloodmyst.com