Home > Article > Web Front-end > Introduction to the use of jquery css_jquery
jQuery css() method
〈1〉Return CSS properties
css("propertyname");
〈2〉Set CSS properties
css("propertyname","value");
〈2.1〉Set multiple CSS properties
css({"propertyname":"value","propertyname":"value",...});
jQuery provides several important methods for handling dimensions:
设置:$("#div1").width(500).height(500); more : $(window/document).width/height;