1、整体宽度自适应
$("#jqGrid").jqGrid({
...
shrinkToFit:ture,//宽度自适应
...
});
2、表头换行显示
1)添加css样式
2)添加<br/>标签;或者设置width: 30,属性,会自动换行
.ui-jqgrid-hbox th.ui-th-column div{
white-space:normal !important;
height:auto !important;
padding:0px;
}