var height = $(window).height(); $("#container").height(height); $("#bd").css("padding-top",height/2 - $("#bd").height()/2); $(window).resize(function(){ var height = $(window).height(); $("#bd").css("padding-top",$(window).height()/2 - $("#bd").height()/2); $("#container").height(height); });
页面满屏效果JS代码
最新推荐文章于 2024-04-28 08:02:36 发布