起初,我不能例如更改類名:我該如何左對齊一個表並右對齊使用相同類的另一個表?
<table class="firsttable"> This is the firstable that must be left align
<tbody>
<tr>
<td>
<table class="firsttable"> And this is the second table that must be center align
<tbody>
<tr>
<td>
如何在CSS代碼呢?
您是否試過選擇器+或〜更新第二個表的CSS?如'.firsttable + .firsttable {text-alig:center}' –
[在同一行上左右對齊兩個內嵌塊]的可能重複(http://stackoverflow.com/questions/10272605/align-two- inline-blocks-left-and-right-on-line) – user1983152