window.onload = function() {
fontSize();
function fontSize () {
var w = window.innerWidth / 10;
var html = document.querySelector("html");
html.style.fontSize = w + "px";
}
window.onresize = fontSize;
}
</script>```
网友评论