由于某些原因,当我将鼠标悬停在div上时,边框会正确动画,但是鼠标悬停不会产生转换。我错过了什么?CSS边框不会生成动画
http://codepen.io/anon/pen/XbPbvr
HTML:
<div class="test">
Test
</div>
LESS:
.test {
background: #eee;
border-bottom: none;
width: 300px;
height: 300px;
transition: border 100ms ease-out;
&:hover {
border-bottom: 5px solid black;
transition: border 100ms ease-out;
}
}