1.height()/ width()
取得第一个匹配元素当前计算的高度/宽度值(px)
height(val)/ width(val) 为每个匹配的元素设置CSS高度(hidth)属性的值
$(#"mydiv").height(); $(#"mydiv").height(10);
2.css(properties) 把一个“名/值对”对象设置为所有匹配元素的样式属性
---在所有匹配的元素上设置大量样式属性的最佳方式!
$(#"mydiv").css({ height: "10px", background: "blue" });