css - 手机端字体到底如何设置简单?什么em,DPR如何取舍,电脑端用的PX,如何适应?
PHPz
PHPz 2017-04-17 12:03:45
0
2
535
PHPz
PHPz

学习是最好的投资!

reply all(2)
黄舟

Use media query @media to change the font size, so the mobile phone and PC will not affect each other.

It is recommended to use REM, you can set html{font-size:100%} Then if you change the root element html, the font size of other sub-elements will be automatically calculated and changed, which is easier to manage, unlike px one by one, calculation comparison convenient.

If you have more things, you can use sass and less.

巴扎黑

rem http://isux.tencent.com/web-app-rem.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template