【发布时间】:2020-05-17 15:29:07
【问题描述】:
我希望能够显示下表,以便在移动设备上按标题堆叠
<table>
<thead>
<tr>
<th>Within the UK</th>
<th>Outside the UK</th>
</tr>
</thead>
<tbody>
<tr>
<td>Within 1</td>
<td>Outside 1</td>
</tr>
<tr>
<td>Within 2</td>
<td>Outside 2</td>
</tr>
<tr>
<td>Within 3</td>
<td>Outside 3</td>
</tr>
<tr>
<td>Within 4</td>
<td>Outside 4</td>
</tr>
</tbody>
我希望数据在移动设备上显示如下:
【问题讨论】:
-
更新了我的答案,请看。
标签: css html-table responsive