CSS过渡效果在Chrome上无效

时间:2013-08-29 06:26:32

标签: cross-browser css-transitions

所以我正在创建一个导航栏(使用Twitter Bootstrap)并为其选择颜色,并在某些元素悬停时将其设置为稍微不同的颜色。但问题是,转换似乎不适用于chrome,它目前在IE和Firefox上工作。有任何想法吗?这里是css转换代码(我把它置于正常状态,而不是on:hover):

-webkit-transition: All .50s ease-out;
-moz-transition: All .50s ease-out;
-o-transition: All .50s ease-out;
-ms-transition: All .50s ease-out;
transition: All .50s ease-out;

如果需要的话,颜色css是这样的:

background-color: hsl(0, 86%, 24%) !important;
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ed1b1b", endColorstr="#710808");
background-image: -khtml-gradient(linear, left top, left bottom, from(#ed1b1b), to(#710808));
background-image: -moz-linear-gradient(top, #ed1b1b, #710808);
background-image: -ms-linear-gradient(top, #ed1b1b, #710808);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ed1b1b), color-stop(100%, #710808));
background-image: -webkit-linear-gradient(top, #ed1b1b, #710808);
background-image: -o-linear-gradient(top, #ed1b1b, #710808);
background-image: linear-gradient(#ed1b1b, #710808);
border-color: #710808 #710808 hsl(0, 86%, 17%);
color: #fff !important;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.46);

0 个答案:

没有答案