清除CSS过渡

JJJ*_*jim 14 css css3 css-transitions twitter-bootstrap

我使用一个CSS框架,它在将鼠标移动到输入元素上时应用转换.我有一个班级,我想没有这个过渡.这可能吗?

rhg*_*hgb 21

刚刚过渡:无; 在CSS中,优先级高于其他人.

例:

HTML:

<div class="a"></div>
<div class="a b"></div>
Run Code Online (Sandbox Code Playgroud)

css:

div.a {
    width: 200px;
    height: 100px;
    border: 1px solid black;
    background-color: #EEE;
    -webkit-transition: background-color 0.5s;
}
div.a:hover {
    background-color: #069;
}
div.a.b {
    -webkit-transition: none;
}?
Run Code Online (Sandbox Code Playgroud)