easyui datagrid 列的内容超出所定义的列宽时,自动换行
在datagrid中添加一句,DataGrid属性中的nowrap:false。(默认为true)。
注意nowrap不是列属性, <th data-options="field:'roleName',width:60,align:'center',nowrap:false">xxx</th> 这样是不行的。
需要写在datagrid中
class="easyui-datagrid" data-options="
fit:true,
fitColumns:true,
scrollbarSize:0,
nowrap:false
"
本文为胖虎原创文章,转载无需和我联系,但请注明来自胖虎博客panghucat.cn
- 上一篇: windows查看端口占用程序并终止
- 下一篇: springboot中ajax上传文件并且携带参数