jquery根据浏览器窗口宽度自动修改body宽度,自适应全屏

07. November 2016 HTML5 0

$(document).ready(function(){
if($(window).width()>=1100){
$(‘body’).css(“width”,”100%”);
}
else{
$(‘body’).css(“width”,”1120″);
}
});


Leave a Reply

Your email address will not be published. Required fields are marked *