HTML を使用して宣言的に作成された Dojo データ グリッドがあります。列を右揃えにする必要があります。次の2つの方法を試しましたが、うまくいきません
1を試す
次の例では、彼align="right"
は無視されますが、各要素width="100px"
のスタイルに追加されます<td>
<table data-dojo-type="dojox.grid.DataGrid" style="height:100px;">
<thead>
<tr>
<th field="col1" width="auto">Col 1</th>
<th field="col2" width="100px" align="right">Col 2</th>
<th field="col3" width="100px" align="right">Col 3</th>
</tr>
</thead>
</table>
トライ2
次の例style="text-align:right;"
では、道場によって完全に無視されているようです
<table data-dojo-type="dojox.grid.DataGrid" style="height:100px;">
<thead>
<tr>
<th field="col1" width="auto">Col 1</th>
<th field="col2" width="100px" style="text-align:right;">Col 2</th>
<th field="col3" width="100px" style="text-align:right;">Col 3</th>
</tr>
</thead>
</table>