fix: page selector warning (#3137)

This commit is contained in:
neverland 2020-05-12 16:33:34 +08:00 committed by GitHub
parent eb10549463
commit dbba552c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

View File

@ -57,3 +57,15 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
<!-- 全边框 -->
<view class="van-hairline--surround"></view>
```
### 全局字体
推荐在 app.wxss 中设置以下全局字体,以保证在不同设备上提供最佳的视觉体验。
```css
page {
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei',
sans-serif;
}
```

View File

@ -3,7 +3,6 @@
*/
@import './style/var.less';
@import './style/normalize.less';
@import './style/ellipsis.less';
@import './style/clearfix.less';
@import './style/hairline.less';

View File

@ -1,5 +0,0 @@
@import './var';
page {
font-family: @base-font-family;
}