<pre id="bbfd9"><del id="bbfd9"><dfn id="bbfd9"></dfn></del></pre>

          <ruby id="bbfd9"></ruby><p id="bbfd9"><mark id="bbfd9"></mark></p>

          <p id="bbfd9"></p>

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

            <th id="bbfd9"><form id="bbfd9"><dl id="bbfd9"></dl></form></th>

            <p id="bbfd9"><cite id="bbfd9"></cite></p><p id="bbfd9"></p>
            <p id="bbfd9"><cite id="bbfd9"><progress id="bbfd9"></progress></cite></p>

            jQuery設置CSS屬性的示例及介紹

            時間:2024-10-02 15:12:01 jQuery Mobile 我要投稿
            • 相關推薦

            jQuery設置CSS屬性的示例及介紹

              設置 CSS 屬性

              如需設置指定的 CSS 屬性,請使用如下語法:

              復制代碼 代碼如下:

              css("propertyname","value");

              下面的例子將為所有匹配元素設置 background-color 值:

              實例

              復制代碼 代碼如下:

              $("p").css("background-color","yellow");

              設置多個 CSS 屬性

              如需設置多個 CSS 屬性,請使用如下語法:

              復制代碼 代碼如下:

              css({"propertyname":"value","propertyname":"value",...});

              下面的例子將為所有匹配元素設置 background-color 和 font-size:

              實例

              復制代碼 代碼如下:

              $("p").css({"background-color":"yellow","font-size":"200%"});

            【jQuery設置CSS屬性的示例及介紹】相關文章:

            css屬性定位教程07-23

            關于jQuery實現高亮顯示的方法介紹08-20

            asp.net+jquery Jsonp使用方法介紹08-23

            jQuery程序設計08-05

            jquery提交按鈕的代碼07-28

            CSS最核心的概念03-10

            CSS入門教程01-25

            架子鼓的設置方法介紹09-24

            關于jquery簡單圖片切換顯示效果實現方法介紹10-01

            淺析jQuery 遍歷函數javascript08-06

                    <pre id="bbfd9"><del id="bbfd9"><dfn id="bbfd9"></dfn></del></pre>

                    <ruby id="bbfd9"></ruby><p id="bbfd9"><mark id="bbfd9"></mark></p>

                    <p id="bbfd9"></p>

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

                      <th id="bbfd9"><form id="bbfd9"><dl id="bbfd9"></dl></form></th>

                      <p id="bbfd9"><cite id="bbfd9"></cite></p><p id="bbfd9"></p>
                      <p id="bbfd9"><cite id="bbfd9"><progress id="bbfd9"></progress></cite></p>
                      飘沙影院