Firefox的CSS箭头渲染问题

GG.*_*GG. 5 html css firefox pseudo-element

上下文

我用伪元素:before:after箭头做了一个纯CSS工具提示.

渲染不同于Chrome 16到Firefox 9和10.

你看错了什么?

Chrome截图

在此输入图像描述

Firefox截图

在此输入图像描述

演示

http://jsfiddle.net/wDff8/重现了同样的问题.

:

<span class="tooltip">Déposez votre fichier dans ce dossier</span>
Run Code Online (Sandbox Code Playgroud)

:

span.tooltip {
  display: inline-block;
  background: #eee;
  margin-left: 20px;
  padding: 0 10px;
  color: #111;
  border-radius: 2px;
  border-top: 1px solid #bbb;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  line-height: 1.5;
  position: relative;
}

span.tooltip:before {
  content:"";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
  border-color: transparent #eee transparent transparent;
  left: -18px;
  top: -1px;
  z-index: 1;
}

span.tooltip:after {
  content:"";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px;
  border-color: transparent #bbb transparent transparent;
  left: -21px;
  top: -2px;
  z-index: 0;
}

body {
    font-family: Georgia;
    font-size: 12px;
    letter-spacing: 1px;
}
Run Code Online (Sandbox Code Playgroud)

san*_*eep 7

可能是transparent你必须rgba(238,238,238,0)在你的CSS中写这个来检查这个更多

Firefox 4中的CSS透明边框问题?