我一直试图让 a 的内容在td
其父table
元素之外可见。我什至不确定这是否可能,但我想在放弃之前我会在这里问一下。
我想要做的是用图标“前置”一个表格行,但我希望它显示在表格旁边,而不是在表格内部。
我尝试将绝对定位应用于图标的容器,该容器div
位于td
但会将图标拉到表格边缘下方。
生成的表格行如下所示:
<tr>
<td>
<div class="icon-container"> // I want this to display
<i class="icon"></i> // to the left of the row
</div> // outside of the table
Cell content here
</td>
...
</tr>