add:前端学习分享(微信群)

This commit is contained in:
qianguyihao
2019-04-28 12:52:06 +08:00
parent 29ec96be68
commit 5ff2cf45e6
8 changed files with 168 additions and 21 deletions

View File

@@ -44,4 +44,33 @@ if (myArray.length)
```javascript
if (JSON.stringify(myObj) !== '{}')
```
```
### 2019-04-26
我们知道,在移动端页面尅发时,单位一般是采用 rem。
设计稿如果是750px宽那么默认换算的单位如下**16px = 1rem**。但是这种换算比较麻烦。我们可以在 html里加上如下代码
```html
<style>
html {
font-size: 20px;
font-size: 5.3333333vw;
}
</style>
```
这样的话,换算单位就变成了:**20px = 1rem**。