根据屏幕大小改变div

来源:互联网 发布:头像源码 编辑:程序博客网 时间:2024/05/01 07:56
jQuery(function($) {
$(window).resize(function(){
var width=$('#content').width();
//$('.touchslider-item a').css('width',width);
$('.product_list_img').css('height',(width/2));
}).resize();
//$(".touchslider").touchSlider({mouseTouch: true, autoplay: true});
});// JavaScript Document
0 0
原创粉丝点击