我想顯示2表內聯,所以我試圖設置其顯示內聯。它失敗:(如何使內聯樣式顯示兩個表格?
什麼是設置它們的最簡單的方式來直接顯示出來?
table {
display: inline;
}
table, td, th {
border: 1px solid black;
}
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
這是工作 – Weedoze
@Weedoze對不起,我想念我的邊框樣式在上面的代碼.. –
不知道你期待什麼,但你的例子所行的期望是什麼。 – Goombah