我想對齊我的html表格列在左邊,但表格動態地來自使用wijmo uij(jQuery庫)wijgrid從JSON用戶界面.....我知道如何對齊表的行,但我不知道如何對齊可以在wijgrid中修復的頭列(我不確定)。如何對齊wijmo ..中的標題文本?
我已經嘗試了下面的代碼,它可以很好的與行對齊工作,但不能與標題對齊工作。
我的代碼:
$("#userlist").wijgrid({
ensureColumnsPxWidth:true,
columns: [
{headerText: "UserId", dataType:"string",width:"8%",
cellFormatter: function (args) {
if (args.row.type & $.wijmo.wijgrid.rowType.data) {
args.$container
.css("text-align", "center")
return false;
} }
},
] });
請告訴我你的解決方案.....謝謝!蒂娜
:非常感謝你:)這是有益的..謝謝蒂娜! – Tina 2012-08-11 06:05:01