看到這個小提琴在Firefox http://jsfiddle.net/qwbpZ/4/如何從Firefox的陰影中刪除奇怪的邊框?
懸停時,你會看到這個灰色線
這是罰款,谷歌Chrome,但這個灰色邊框出現在其他瀏覽器。 我該如何解決這個問題?
CSS
a, a:visited {color:#fff}
.btn {
display: inline-block;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: 0 9px 0 #000000, 0 13px 0 rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 9px 0 #000000, 0 13px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 9px 0 #000000, 0 13px 0 rgba(0, 0, 0, 0.1);
-webkit-transition: -webkit-box-shadow .2s ease-in-out;
-moz-transition: -moz-box-shadow .2s ease-in-out;
-o-transition: -o-box-shadow .2s ease-in-out;
transition: box-shadow .2s ease-in-out;
padding: 0px;
background: black; /* see ? */
}
.btn span {
display: inline-block;
padding: 22px 22px 11px;
font-family: Arial, sans-serif;
line-height: 1;
text-shadow: 0 -1px 1px rgba(19,65,88,.8);
background: #2e2e2e;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: inset 0 -1px 1px rgba(255,255,255,.15);
-moz-box-shadow: inset 0 -1px 1px rgba(255,255,255,.15);
box-shadow: inset 0 -1px 1px rgba(255,255,255,.15);
-webkit-transition: -webkit-transform .2s ease-in-out;
-moz-transition: -moz-transform .2s ease-in-out;
-o-transition: -o-transform .2s ease-in-out;
transition: transform .2s ease-in-out;
color: #FFF;
font-size: 32px;
border: 0
}
.btn:hover {
-webkit-box-shadow: 0 8px 0 #000,
0 12px 10px rgba(0,0,0,.3);
-moz-box-shadow: 0 8px 0 #000,
0 12px 10px rgba(0,0,0,.3);
box-shadow: 0 8px 0 #000,
0 12px 10px rgba(0,0,0,.3);
}
.btn:hover span {
-webkit-transform: translate(0, -4px);
-moz-transform: translate(0, -4px);
-o-transform: translate(0, -4px);
transform: translate(0, -4px);
}
.btn:active {
-webkit-box-shadow: 0 8px 0 #000,
0 12px 10px rgba(0,0,0,.3);
-moz-box-shadow: 0 8px 0 #000,
0 12px 10px rgba(0,0,0,.3);
box-shadow: 0 8px 0 #000,
0 12px 10px rgba(0,0,0,.3);
-webkit-transition: -webkit-box-shadow .2s ease-in-out;
-moz-transition: -moz-box-shadow .2s ease-in-out;
-o-transition: -o-box-shadow .2s ease-in-out;
transition: box-shadow .2s ease-in-out;
}
.btn:active span {
-webkit-transform: translate(0, 0px);
-moz-transform: translate(0, 0px);
-o-transform: translate(0, 0px);
transform: translate(0, 0px);
}
有趣的是,它看起來在我在Ubuntu 11.04的Firefox(6.0.2)的罰款。 – Thor84no
我在Windows 7 64位。 –
它爲我顯示Firefox 6.0.2/Windows 7. @ Thor84no:你是否在按鈕上懸停? – thirtydot