jqGrid随窗口大小变化自适应宽度 $(function(){ $(window).resize(function(){ $("#jqgridID").setGridWidth($(window).width()); }); });