動的テーブルのコンテンツを中央に配置しようとしています。jquery ライブラリから選択した要素を使用しています。テーブルのすべてのテキストを中央に配置したい。通常の方法をすべて試しましたが、テキストを中央に配置できません。私のコードは次のとおりです。
<tbody id="tbody_chosen">
<?php foreach($table as $row){
$num = $row->total_quantity - $row->available_quantity;
echo "<tr>
<td>{$row->id}</td>
<td>{$row->name}</td>
<td>{$row->total_quantity}</td>
<td>{$num}</td>
<td>{$row->available_quantity}</td>
<td>{$row->inOrder}</td>";
if(have_access("manager"))
//TODO here we have to use the product's supplier ID
echo "<td>
<input type=\"checkbox\" name=\"selector[]\" value=\"{$row->id}\" id=\"selector-{$row->id}\"/>
<input type=\"hidden\" name=\"selector_id[]\" id=\"selector_id-{$row->id}\" value=\"{$row->supplied_by}\" />
</td>";
echo "</tr>";
} ?>
</tbody>