如何设置表格的宽度小于1%?
<div>
<table class='total_cost table no-margin' cellpadding="0" cellspacing="0" width="0.5%" style='background:#4A84CE; float:left; height:20px; padding:0px; border:none; border-spacing:0px; border-collapse:collapse;'>
<tr>
<td class='cost text-right fg-white employee-tooltip' cellpadding="0" cellspacing="0" style='padding:0px; border:none;border-spacing:0px; border-collapse:collapse; background:#F00' ></td>
</tr>
</table>
<span class="display_time"> 2 hours</span>
</div>
答案 0 :(得分:1)
将任何宽度设置在0%和1%之间,如0.25%,0.50%,0.75%
<div>
<table class='total_cost table no-margin' cellpadding="0" cellspacing="0" width="0.50%" style='background:#4A84CE; float:left; height:20px; padding:0px; border:none; border-spacing:0px; border-collapse:collapse;'>
<tr>
<td class='cost text-right fg-white employee-tooltip' cellpadding="0" cellspacing="0" style='padding:0px; border:none;border-spacing:0px; border-collapse:collapse; background:#F00' ></td>
</tr>
</table>
<span class="display_time"> 2 hours</span>
</div>
答案 1 :(得分:0)
<div>
<table class='total_cost table no-margin' cellpadding="0" cellspacing="0" width="0.1%" style='background:#4A84CE; float:left; height:20px; padding:0px; border:none; border-spacing:0px; border-collapse:collapse;'>
<tr>
<td class='cost text-right fg-white employee-tooltip' cellpadding="0" cellspacing="0" style='padding:0px; border:none;border-spacing:0px; border-collapse:collapse; background:#F00' ></td>
</tr>
</table>
<span class="display_time"> 2 hours</span>
</div>
&#13;