【发布时间】:2011-12-02 12:57:48
【问题描述】:
我想要一个<div>,当你触摸它时,它会慢慢改变其背景颜色。
我为此使用了 :active 伪类:
div {
background: #fff;
transition: all .3s linear;
-o-transition: all .7s linear;
-moz-transition: all .7s linear;
-webkit-transition: all .7s linear;
}
div:active {
background: #E5CC00;
}
在 Chrome 上完美运行,但在 PhoneGap/Android 上无法运行。我也试过:hover。
有什么想法吗?
【问题讨论】:
标签: android html css cordova transitions