jquery css attributes provided in several ways

  • () Method returns the element with style properties css
    $("div").css("padding-left"));
  • () Set the style with css
    $("div").css("color","yellow");  
  • Setting multiple styles
    $("div").css({"background-color":"yellow","font-size":"200%"});

Guess you like

Origin www.cnblogs.com/bneglect/p/11019557.html