How to change browser default font size - Stack Overflow
世界只因有你2017-06-24 09:43:33
0
3
1018
When I was doing mobile development, I found that the font size was relatively small; but no matter how I set it, it had no effect; how can I change the default font size?
Pay attention to these questions:
1,
2,
Set a font size for html. How about using rem for other fonts
1. Add
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
2. CSS file settings in your html file
body{font-size:16px;}