mercatorSteveCl提出了一个问题:jQuery animate backgroundColor,或许与您遇到的问题类似。
回答者NoobEditorAndrew给出了该问题的处理方式:
The color plugin is only 4kb so much cheaper than the UI library. Of course you'll want to use a decent version of the plugin and not some buggy old thing which doesn't handle Safari and crashes when the transitions are too fast. Since a minified version isn't supplied you might like test various compressors and make your own min version. YUI gets the best compression in this case needing only 2317 bytes and since it is so small - here it is:
--------- --- - -------------------------- -------------------- ------------------ ------------------- ----------------- -------- ---------------- -------- --- -- - ------------ - -------- --- - -- -------------- - ------- - --------- --- ----- - --------- ----------- - ---- - --------------- - ------ - ---------------------------------- - --------- - ------------ - ------------ ----- --- --------------------------------- - --------- - ------------ - ------------ ----- --- --------------------------------- - --------- - ------------ - ------------ ----- ------------- - --- - --- -------- ---- - --- -- -- -- -- ------------- -- ----- -- -------- -- -- - ------ - - -- -- - -------------------------------------------------------------------------- - ------ ---------------- --------------- --------------- - -- -- - ----------------------------------------------------------------------------------------------------------- - ------ ----------------- - ----- ---------------- - ----- ---------------- - ----- - -- -- - ------------------------------------------------------------ - ------ --------------- ---- -------------- ---- -------------- ---- - -- -- - --------------------------------------------------- - ------ -------------- - ----- ---- ------------- - ----- ---- ------------- - ----- ---- - -- -- - --------- -- -- ------------- - ------ ------------- - ------ -------------------------- - -------- ---- -- - --- -- -- - - - -------- --- -- -- -- -- -- - -- ------------- -- ------------- -------- - ----- - - - ----------------- - ----- -- - -------------- ------ ---- - --- - - - ----- --- ---- ----- ------ ----- ---- ----- ------ ----- ---- ----- ------ --- -- --- ----- --- -- ----- ------ ----- --- ---- ----- --- ---- ----- --------- --- -- ----- --------- --- ---- ----- --------- ----- ---- ----- ---------- --- ---- --- ---------- ----- ---- ----- ------------ ----- -- ----- --------------- ---- ---- ---- ----------- ----- ---- --- ----------- ----- --- ----- -------- ----- -- --- ----------- ----- ---- ----- ----------- ----- -- ----- -------- ----- -- ----- ----- ----- ---- --- ------ --- ---- --- ------- ---- -- ----- ------ ----- ---- ----- ---------- ----- ---- ----- ---------- ----- ---- ----- ----------- ----- ---- ----- ---------- ----- ---- ----- ---------- ----- ---- ----- ------------ ----- ---- ----- ----- --- ---- --- -------- ----- -- ----- ------- ----- -- --- ----- --- -- ----- ------ ----- ---- --- ------- ----- ---- --- ----- ----- ---- ----- ------- ----- -- ----- ------- ----- -- ----- ---- ----- -- --- ------- ----- ---- ----- ------ ----- ---- ----- ------- ----- ---- --- ------------ ----- ---- ---- - -----------
希望本文对你有帮助,欢迎支持JavaScript中文网
来源:JavaScript中文网 ,转载请注明来源 本文地址:https://www.javascriptcn.com/post/8479