0
我需要一個下劃線,它佔用了一些包裹文本後的所有剩餘寬度。而這一切都在一個表格單元格中。如何在包裝文本後將div拉伸到可用寬度?
這裏是我想要的東西:
如果文字環繞不同,當然還有(因調整或其他),下劃線寬度必須相應地改變。
什麼它表明:
我的代碼是:
.uln {
border-bottom-style: solid;
border-bottom-width: 1px;
display: inline-block;
}
<table style="width:220px; text-align:justify">
<tr>
<td>
<span>this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text.</span>
<div class="uln"> </div>
</td>
</tr>
</table>