我正在尝试获得以下段落的动态高度。
<td>
<b>audio systems</b> <br>
<div style="position:absolute">
<p>Do you need services of a company that specialises in audio systems? With expertise in all areas of audio systems, AAVI is the best choice.</p>
</div>
</td>
我不能让这个td
动态增加div
标签内段落的高度。相反,它总是越过td
部分,即使我为div
和p
设置了宽度。我不想让p
在div
或td
部分上出现。
有办法让它工作吗?
<table>
<tr>
<td>
<b>audio systems</b> <br>
<div style="position:absolute">
<p>Do you need services of a company that specialises in audio systems? With expertise in all areas of audio systems, AAVI is the best choice.</p>
</div>
</td>
</tr>
</table>
只能通过删除position:absolute;
或使用JavaScript。
使<div>
绝对定位将其从正常流程中移除。