绝对定位按钮问题中的元素

时间:2010-10-11 23:53:55

标签: css firefox

有一个奇怪的问题。对于我的生活无法追溯到这一点(它肯定会是一个菜鸟问题 - 我确定无法看到它!)

我有一个相对定位的并且其中的跨度绝对位置正确:0顶部:0底部:0并且宽度为20px ....

很好的chrome / safari ie9(尚未检查7/8)但firefox设置正确:-6px botom -3px ...

非常难倒 - 我一直在寻找一段时间,树木正在阻挡树林......

这是页面 - 以及左侧面板中搜索表单上的按钮。

demo page

任何帮助都非常感激。

2 个答案:

答案 0 :(得分:1)

我用萤火虫快速播放,发现

.panel button {height:1.5em}(public-layout.css,102行)

和按钮{font-size:0.9em}(public-tipography.css,第60行)

以某种方式更改布局。

答案 1 :(得分:0)

button span {
bottom:0;
height:20px;
position:absolute;
right:0;
width:20px;
}