1.html设置css样式
<style>
.ui-jqgrid .ui-jqgrid-bdiv {
border-top: 1px solid #E1E1E1;
overflow-x: auto;
}
.frozen-div, .frozen-bdiv {
background-color: #E4E6E9;/*与网页背景色一致*/ */
}
</style>
2.js设置
shrinkToFit:false,
autoScroll: true, //开启水平滚动条
$("#table_list_1").jqGrid({
url : '../../queryAnchorIncomeCount',
mtype : 'POST',
datatype : "json",
styleUI: 'Bootstrap',
postData: {},
colNames : [ '日期', '主播数', '回放数量', '违规', '主播删除', '回放总时长(分钟)', '总收入', '作品总数', '作品收益'],
colModel : [ {name : 'date', index : 'date', width : 150,editable:true,key:true},
{name : 'anchorCount', index : 'anchorCount',ed