我在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/ –