jquery css() 方法
〈1〉返回 css 属性
css("propertyname");
〈2〉设置 css 属性
css("propertyname","value");
〈2.1〉设置多个 css 属性
css({"propertyname":"value","propertyname":"value",...});
jquery 提供多个处理尺寸的重要方法:
设置:$("#p1").width(500).height(500); more : $(window/document).width/height;
如对本文有疑问, 点击进行留言回复!!
offset、client、scroll (width,height、left,top、X,Y)
网友评论