css - WebKit 中的神秘 1px 边框

标签 css webkit

我有一个神秘的 1px 底部边框出现在 Safari 和 Chrome 中(我猜是 WebKit 的东西)。 Firefox 显示正常。

下方的按钮应与下方的青色 栏齐平。不应该有 1px 的线将它们分开。

WebKit Example

我玩过 heightborderpositionpaddingmargin 但一直无法弄清楚这一点。

在 Web Inspector 中将 bottom: 0 更改为 bottom: -5px 仍然会生成该行。

其中有很多样式,所以我会尝试合并级联。

#tell-a-friend {
  background-repeat:no-repeat;
  display:block;
  height:33px;
  margin-right:0;
  position:absolute;
  float:right;
  font-size:1.2em;
  margin-right:0.8em; 
  background-position:right 0;
  bottom:0;
  height:35px !important;
  left:682px;
  width:82px;
}

话又说回来,我可能会过得更好linking to the site .

CSS 已缩小,因此请使用 Web Inspector 查看 CSS。

我已经尝试了我现在能想到的一切,所以我要看看你们是否可以帮助我:)

非常感谢!

最佳答案

编辑:这是你的 <div id="header">的绝对高度。尝试将其缩短一个像素。

alt text

不是黑色轮廓,是灰色背景...背景图片底部有一个1px的透明行,灰色背景透了出来。

关于css - WebKit 中的神秘 1px 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3902833/

相关文章:

css - firefox css max-width 和 max-height 内 max-height div

html - Tweet Link 和 Facebook Like & Send 按钮在 Chrome、Safari 和 Firefox 中是水平的,但在 Internet Explorer 8 中不是

CSS Webkit 外观覆盖?

javascript - 是否可以使用 translate3d(x,y,z) 找到元素移动时的当前 (x,y,z)?

jquery - 无法使用 jQuery 删除或更新内联样式

html - Bootstrap 4 img-circle 类似乎不存在

html - 如何将元素从照片底部移动到照片右侧?

objective-c - Cocoa webview : Slow on first execution of app, 然后就好了

jquery - 如何确保图像加载到 JQuery 插件中?

jquery - float 和内联 block 有时在 webkit 中不起作用