chuiliu/dev-notes

移动端适配

Opened this issue · 0 comments

var html = document.getElementsByTagName('html')[0];
var width = html.clientWidth;
html.style.fontSize = 12 * (widht / 320) + 'px';