jQuery CSS 函數

來源:互聯網
上載者:User

jQuery CSS 函數

CSS 屬性 描述
$(selector).css(name,value) 為匹配元素設定樣式屬性的值
$(selector).css({properties}) 為匹配元素設定多個樣式屬性
$(selector).css(name) 獲得第一個匹配元素的樣式屬性值
$(selector).height(value) 設定匹配元素的高度
$(selector).width(value) 設定匹配元素的寬度
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.