我在Firefox中應用邊框樣式更改時遇到問題。 我的代碼:在Firefox中更改邊框樣式
.wizardCircle{
position: relative;
background: #fff;
display: inline-block;
margin: auto;
height: 45px;
line-height: 40px;
font-weight: bold;
width: 45px;
border: 3px solid;
border-radius: 50%;
text-align: center;
-moz-transition: all .3s ease-in-out;
-webkit-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
#wizardRow>div:hover .wizardCircle{
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
border-style: dotted;
}
問題只存在於FF中。我試圖使用border: 3px dotted
insted border-style
和!important
但這也不起作用。 CSS transform
在所有瀏覽器中工作。 HTML結構:
<div id="wizardRow" class="row">
<div class="col-xs-2 wizardCompleted">
<a href="#"><span class="wizardCircle"><span class="glyphicon glyphicon-ok"></span></span></a>
<a href="#"><span class="wizardDesc">Tekst</span></a>
</div>
</div>
你可以創建一個你的代碼的小提琴 – man
看起來很好:http://jsfiddle.net/yRBCm/ – SW4
這裏是它:http://jsfiddle.net/5fbyU/ –