var screen_w = $(window).width(),
screen_h = $(window).height();
$("img").width(screen_w+'px');
JS获取浏览器的宽和高
最新推荐文章于 2024-08-25 01:04:00 发布

var screen_w = $(window).width(),
screen_h = $(window).height();
$("img").width(screen_w+'px');