【发布时间】:2012-10-22 13:43:00
【问题描述】:
请看这个Fiddle
我升级到FF 16.0.2后,绝对位置有问题。
有什么建议吗?
HTML部分
<table>
<tr>
<td>
<div>
Product 1
<span>Button</span>
</div>
</td>
<td>
<div>
Product 2
<span>Button</span>
</div>
</td>
</tr>
CSS 部分
tr { height:250px; }
td {
position:relative;
width:200px;
text-align:center;
border:1px solid #999;
}
div {
position:absolute;
top:10px; bottom:10px; left:10px; right:10px; /* as padding */
}
span {
position:absolute; bottom:0; left:50px;
width:90px; height:20px;
padding: 5px 0;
background:#ccc;
}
我想显示的是这样的:
【问题讨论】:
-
这里的实际问题/问题是什么? “不正确”是什么意思?
-
请看我刚刚添加的截图。
-
它在 Chrome 23 中运行良好,但在 Firefox 16.0.1 中运行良好
标签: css firefox position css-position