久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      jq 怎么修改css屬性

      jq修改css屬性的方法:1、通過(guò)“css(name,value)”為所有匹配元素的給定CSS屬性設(shè)置值;2、通過(guò)“css({properties})”為匹配的一系列css屬性設(shè)置值;3、通過(guò)“css(name)”返回指定的CSS屬性的值。

      jq 怎么修改css屬性

      本文操作環(huán)境:windows7系統(tǒng)、jquery1.2.6&&CSS3版、Dell G3電腦。

      jq 怎么修改css屬性?

      jQuery修改css屬性:

      jQuery 擁有三種用于 CSS 操作的重要函數(shù):

      $(selector).css(name,value) $(selector).css({properties}) $(selector).css(name)

      函數(shù) css(name,value) 為所有匹配元素的給定 CSS 屬性設(shè)置值:

      實(shí)例

      $(selector).css(name,value) $("p").css("background-color","red");

      函數(shù) css({properties}) 同時(shí)為所有匹配元素的一系列 CSS 屬性設(shè)置值:

      實(shí)例

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

      函數(shù) css(name) 返回指定的 CSS 屬性的值:

      實(shí)例

      $(selector).css(name) $(this).css("background-color");

      推薦學(xué)習(xí):《css視頻教程》、《jquery視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)