代码之家  ›  专栏  ›  技术社区  ›  alex

WebKit中的神秘1px边框

  •  0
  • alex  · 技术社区  · 14 年前

    下面的按钮应该与

    WebKit Example

    我玩过 height border position , padding margin

    改变 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检查器查看CSS。

    非常感谢!

    1 回复  |  直到 14 年前
        1
  •  2
  •   Dagg Nabbit    14 年前

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

    alt text

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