2012-04-24 64 views

回答

7

我認爲這居中標題中的代碼可能是有關以下

$("#grid").closest("div.ui-jqgrid-view") 
    .children("div.ui-jqgrid-titlebar") 
    .css("text-align", "center") 
    .children("span.ui-jqgrid-title") 
    .css("float", "none"); 

the demo

enter image description here

+0

奧列格永遠是最好的! – Bertaud 2012-04-24 13:34:38

+0

@Bertaud:不客氣! – Oleg 2012-04-24 13:42:58

+0

不要忘記這個問題:http://stackoverflow.com/questions/10299151/grid-height-and-the-empty-space-after-the-last-column – Bertaud 2012-04-25 12:23:30