我有一个常规的HTML表格显示来自API的内容。垂直显示多个而不是减少宽度
<table style="width:100%">
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
我的页面响应很快。
当屏幕宽度减少,所以内容不符合宽度,是否有可能,与CSS,使<td>
行事<tr>
?所以用上面的代码我想显示6个垂直对齐的<td>
?
这可能有助于https://css-tricks.com/examples/ResponsiveTables/responsive.php – Manwal
类似这样的:https:/ /css-tricks.com/responsive-data-tables/ – Anthony