<address id="ousso"></address>
<form id="ousso"><track id="ousso"><big id="ousso"></big></track></form>
  1. 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

    <address id="ousso"></address>
    <form id="ousso"><track id="ousso"><big id="ousso"></big></track></form>
    1. 日日做夜狠狠爱欧美黑人