主要代码
cols: [[
{field:‘theDate’, width:‘10%’, title: ‘提货日期’,align:‘center’,unresize:true}
,{field:‘goodsId’, width:‘10%’, title: ‘商品Id’, align:‘center’}
,{field:‘goodsName’, width:‘30%’, title: ‘商品名称’, align:‘center’}
,{field:‘lineName’, width:‘10%’, title: ‘线路’, align:‘center’}
,{field:‘tranName’, width:‘10%’, title: ‘服务站’, align:‘center’}
,{field:‘wareHouse’, width:‘10%’, title: ‘所属仓库’, align:‘center’}
,{field:‘factSaleNum’, width:‘10%’, title: ‘实际销售数量’, align:‘center’}
,{field:‘returnNum’, width:‘10%’,title: ‘退货数量’, align:‘center’}
]],
done: function (res, curr, count){
$(“table”).css(“width”, “100%”);
//这里设置表格的宽度为100%
},
相关文章
- EasyExcel 自适应列宽、隐藏列、动态列、单元格下拉框选择数据、单元格文本格式
- 通过Python 调整Excel行高、列宽-Python 设置自适应行高、列宽
- 如何在 LayUI 数据表格的列元素上,鼠标悬浮,显示所有文字内容(修改源码)
- Layui 设置数据表格列宽自适应
- JTable中实现行背景颜色、固定表格列宽、根据内容自动调整列宽、列中数据排序等功能示例代码
- Java 设置Excel自适应行高、列宽
- python 设置 Excel 表格的行高和列宽
- Excel中如何设置数据透视表的列宽固定不变 - w.zh
- Swing面板上调整JTable的行高和列宽,以及表格超出JScorllPane时设置滚动条
- layui table 数据表格 隐藏列