html:
<br/><br/><br/><br/><br/>
<table>
<tr>
<td class="container">
<button class="del">delete</button>
</td>
</tr>
</table>
<br/><br/><br/><br/><br/>
<div class="container">
<button class="del">delete</button>
</div>
CSS:
.container {
position: relative;
border: 1px solid red;
height: 50px;
width: 200px;
}
.del {
position: absolute;
top: 3px;
right: 3px;
}
为什么a里面的按钮div
会放在div的右上角,而a里面的按钮td
会放在桌子外面?
如何解决?
查看活动演示:http: //jsfiddle.net/Freewind/d6Tug/