【发布时间】:2021-06-02 21:32:02
【问题描述】:
我希望表格的列在小屏幕上稍微宽一些(这样我在其中使用的图标仍然是合适的大小)
我在做:
<th style="width:41% sm:width:35%" class="py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Name/No
</th>
<th style="width:3% sm:width:5% " ></th>
<th style="width:3% sm:width:5% " ></th>
<th style="width:3% sm:width:5% " ></th>```
but it only uses the 5% not the 3% no matter how big my window is
PS there are some other <th> before this so the total percentage = 100%
【问题讨论】: