jquery easyui 怎么设置标题列居左,里面的数据列居右?
------解决方案--------------------------------------------------------
貌似没这功能,column的align属性是共享的
要么下个源代码改改...
------解决方案--------------------------------------------------------
如这种写法
- JScript code
$(function(){ $('#tt').datagrid({ url: 'datagrid_data3.json', title: 'DataGrid', width: 700, height: 220, fitColumns: true, nowrap:false, rownumbers:true, showFooter:true, columns:[[ {field:'itemid',title:'Item ID',width:80}, {field:'productid',title:'Product ID',width:120}, {field:'listprice',title:'List Price',width:80,align:'right'}, {field:'unitcost',title:'<span class="txtleft">Unit</span> Cost',width:80,align:'right'}, {field:'attr1',title:'Attribute',width:250}, {field:'status',title:'Status',width:60,align:'center'} ]],onLoadSuccess:function(data){$(".txtleft").parent().parent().css("text-align","left");sss} }); });