2013-07-28 78 views
0

我的代码转换没有转换出来。当我将鼠标悬停在上面时,没有问题,但是当我将鼠标移开时,它只能回到原始状态,而没有转换。CSS转换不工作

下面的代码:

#nav a { 
display:inline-block; 
text-transform:lowercase; 
width:35px; 
padding:5px; 
margin-left:3px; 
font-size:9px; 
letter-spacing:1px; 
text-align:left; 
border-bottom:1px solid {color:border}; 
-webkit-transition: all 0.7s ease-out; 
-moz-transition: all 0.7s ease-out; 
-ms-transition: all 0.7s ease-out; 
-o-transition: all 0.7s ease-out; 
transition: all 0.7s ease-out; 
} 

#nav a:hover { 
width:50px; 
text-align:right; 
border-bottom:1px solid {color:border}; 
} 
+1

看到您的HTML是有帮助的。而且我没有在这里看到[问题](http://jsfiddle.net/nJQUv/) –

+0

你需要在两个css类中都有'transition'。 – RozzA

回答