$(document).ready(function () { var width = $(window).width(); var width1 = $('.main6_li').width(); var width2 = $('.main_img_li').width(); var width3 = $('.list_image_li').width(); $(".main6_li img").css("height",width1*0.5608108108108); $(".main_img_li img").css("height",width2*0.5608108108108); $(".list_image_li img").css("height",width3*0.5608108108108); var height = $(window).height(); var height1 = $('.footer_f').height(); $(".zhanwei").css("height",height1+20); if (width<1000) { var width6 = $('.main1_left_m').width(); $(".main1_left_m").css("height",width6*0.6253369272237); $(".main1_left_m .pic img").css("height",width6*0.6253369272237); $(".main1_left_m .pic").css("height",width6*0.6253369272237); } else{ } });