📜  css 动画背景颜色变化 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:35.906000             🧑  作者: Mango

代码示例1
#content #nav a {
    background-color: #FF0;
    
    -webkit-transition: background-color 1000ms linear;
    -moz-transition: background-color 1000ms linear;
    -o-transition: background-color 1000ms linear;
    -ms-transition: background-color 1000ms linear;
    transition: background-color 1000ms linear;
}

#content #nav a:hover {
    background-color: #AD310B;
}