3 lines
166 B
JavaScript
3 lines
166 B
JavaScript
6 years ago
|
var deviceWidth = document.documentElement.clientWidth;
|
||
|
if(deviceWidth >= 640) deviceWidth = 640;
|
||
|
document.documentElement.style.fontSize = deviceWidth / 10.8 + 'px';
|