.height() / .width()
最后更新于:2022-04-02 03:20:32
[TOC]
## .height()

可知高度是不算 padding的
### 概述
- .css('height') 返回一个有单位的数值
- .height() 返回一个没有到位的数组(如:400)
### 语法
```
.height( value )
.height( function(index, height) )
```
### 实例
#### 设置高度
```
$("div").height(30)
```
#### 获取高度
```
$("div").height()
$(window).height() // 获取视口高度
$(document).height() // 获取html元素的高度
```
### .width()

';