嗨,我在一个表格单元格中有两个 div(制作一个时间轴),我需要它们重叠而不是相互重叠。
单元格内所有 DIV 的位置属性必须保持不变(因为我使用了拖放 JQUERY 插件)
<tr style="border:1px; height:30px;">
<td style="border:1px solid black; position:static">
<div style="margin-left:0;width:50px;display:inline;position:relative">
<div style="background-color: green; position:absolute">
Div1
</div>
</div>
<div style="margin-left:0px;width:20px;display: inline; position:relative">
<div style="background-color: red; position:absolute">
Div2
</div>
</div>
</td>
<td>
</td>
</tr>
我需要两个 DIV 从单元格的边缘开始相对。
谢谢