<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # jQuery UI API - 顏色動畫(Color Animation) jQuery UI 特效核心添加了使用 `rgb()`、`rgba()`、十六進制值或者顏色名比如`"aqua"` 來動態改變 color 屬性的功能。只需要包含 jQuery UI 特效核心文件,[`.animate()`](/jquery/eff-animate.html) 就會支持顏色。 支持下列屬性: * `backgroundColor` * `borderBottomColor` * `borderLeftColor` * `borderRightColor` * `borderTopColor` * `color` * `columnRuleColor` * `outlineColor` * `textDecorationColor` * `textEmphasisColor` 對顏色動畫的支持來自 [jQuery Color 插件](https://github.com/jquery/jquery-color)。Color 插件提供了一些用于顏色的函數。如需查看完整文檔,請訪問 [jQuery Color 文檔](https://github.com/jquery/jquery-color#readme)。 ## Class 動畫(Class Animations) 雖然可以直接對 color 屬性進行動畫化,但是通常采用另一種更好的方法,即在一個 class 中包含樣式。jQuery UI 提供了一些動態添加或去除 CSS 類的方法,分別是 [`.addClass()`](api-addClass.html)、[`.removeClass()`](api-removeClass.html)、 [`.toggleClass()`](api-toggleClass.html) 和 [`.switchClass()`](api-switchClass.html)。這些方法將自動確定哪些屬性需要改變,哪些需要應用適當的動畫。 ## 實例 ``` <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>顏色動畫(Color Animation)演示</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <style> #elem { color: #006; background-color: #aaa; font-size: 25px; padding: 1em; text-align: center; } </style> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> </head> <body> <div id="elem">顏色動畫</div> <button id="toggle">改變顏色</button> <script> $( "#toggle" ).click(function() { $( "#elem" ).animate({ color: "green", backgroundColor: "rgb( 20, 20, 20 )" }); }); </script> </body> </html> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看