Showing
1 changed file
with
5 additions
and
3 deletions
| @@ -44,12 +44,14 @@ ScreenUtil.instance = new ScreenUtil(width: 360, height: 720); | @@ -44,12 +44,14 @@ ScreenUtil.instance = new ScreenUtil(width: 360, height: 720); | ||
| 44 | 44 | ||
| 45 | ### 使用: | 45 | ### 使用: |
| 46 | ``` | 46 | ``` |
| 47 | -.... | ||
| 48 | -//传入设计稿的px尺寸: | ||
| 49 | 47 | ||
| 50 | -适配尺寸: | 48 | + |
| 49 | +### 适配尺寸: | ||
| 50 | +``` | ||
| 51 | +//传入设计稿的px尺寸: | ||
| 51 | width: ScreenUtil().setWidth(540), | 52 | width: ScreenUtil().setWidth(540), |
| 52 | height: ScreenUtil().setHeight(200), | 53 | height: ScreenUtil().setHeight(200), |
| 54 | +``` | ||
| 53 | 55 | ||
| 54 | 其他相关api: | 56 | 其他相关api: |
| 55 | 57 |
-
Please register or login to post a comment