var clientW = $(window).width();
if(clientW > 750){
$('html').css('font-size', 750/750 * 100 + 'px');
}
else {
$('html').css('font-size', clientW/750 * 100 + 'px');
}
转载于:https://www.cnblogs.com/fang51/p/4288210.html