var win_w = document.documentElement.clientWidth || document.body.clientWidth;
var _html = document.getElementsByTagName('html')[0];
_html.style.fontSize = win_w /20 + 'px';