| 尺寸单位 | 全称 | 说明 |
| px | - | 常用单位 |
| rem | font size of the root element | 根据网页的根元素(html)来设置字体大小 |
| em | font size of the element | 根据其父元素的字体大小来进行设置 |
| vh/vw | 视口宽度/高度 | |
| rpx | responsive pixel | 微信小程序像素单位,宽度以iphone6(750rpx)为标准 |
| 尺寸单位 | 全称 | 说明 |
| px | - | 常用单位 |
| rem | font size of the root element | 根据网页的根元素(html)来设置字体大小 |
| em | font size of the element | 根据其父元素的字体大小来进行设置 |
| vh/vw | 视口宽度/高度 | |
| rpx | responsive pixel | 微信小程序像素单位,宽度以iphone6(750rpx)为标准 |