JavaScript/jquery/自适应窗口

来自康健生活
$(document).ready(function(){
  $(window).resize(function(){
    $("span").text(x++);
  });
});