<table>
<tbody>
<tr style="height:30px">
<td>Has a Menu and is goes to the extreme left</td>
<td style="position: absolute; right: 238px;">this cell has a Checkout image and needs to be close to the next cell</td>
<td style="vertical-align: top; padding-top: 0px; position: absolute; right: 12px;">has another menu and needs to go to the extreme right</td>
</tr>
</tbody>
</table>
第二个 TDstyle="position: absolute; right: 238px;"
需要能够根据最后一个 TD 调整自身大小style="vertical-align: top; padding-top: 0px; position: absolute; right: 12px;"
。最后一个 TD/Cell 很好,需要精确到它所在的位置,这就是我必须设置位置的原因:absolute.... 但是之前的 TD 需要在它之前。
如果我在第二个 TD 上删除 position:absolute ,那么它会转到我不想要的左侧。如果我保持原样,那么当最后一个 TD 减小或增大时,如果影响第二个 TD 的屏幕位置 - 我需要第二个 TD 始终接近最后一个 TD
你能通过重新定义/重构样式来提供帮助吗对于 td 与style="position: absolute; right: 238px;"
?