【发布时间】:2019-02-22 12:57:45
【问题描述】:
我有这张表,它是较大电子邮件的一部分。当用户的设备是手机或小屏幕时,我希望表格从 2 列/2 行变为 1 列 4 行。希望使用尽可能少的代码。
<table style="width:100%;table-layout:fixed;border-collapse:separate !important;border-spacing:20px 40px; font-family:Helvetica, Arial, sans-serif; color:#333333; font-size:16px; line-height:24px; font-weight:100;" class="bodywrapcenter">
<tr>
<td>
Dr. Andrew Borg<br>
Chapter Advisor<br>
aborg@example.edu<br>
</td>
<td>
Stuart J. Sigman, PhD<br>
Dean, College of Arts and Sciences<br>
</td>
</tr>
<tr>
<td>
Dr. Dale Mancini<br>
Chapter Advisor<br>
dmancini@example.edu<br>
</td>
<td>
David DeHaven, PhD<br>
Dean, Graduate School of Business and Management<br>
</td>
</tr>
</table>
【问题讨论】:
-
使用 div 和 bootstrap 或其他网格系统。
标签: html css html-table responsive