为什么animation
属性不适用于::selection
选择器在CSS中?::选择动画
/* Basic test case: */
body{ color:blue; }
@keyframes slc{
50%{ color:red; }
}
@-webkit-keyframes slc{
50%{ color:red;; }
}
/* Custom Selection Styles */
::selection{ background:#EEE; animation:0.4s slc infinite; }
::-moz-selection{ background:#EEE; animation:0.4s slc infinite;}
::-webkit-selection{ background:#EEE; -webkit-animation:0.4s slc infinite; }
我不是CSS专家,也不知道这是原因 – vol7ron 2013-03-17 00:05:07
我认为他们只是忘了添加它!没有任何理由不支持它 – vsync 2013-03-17 09:12:59
我认为它也错过了。也许问问阿特金斯? – 2013-03-17 09:18:49