美文网首页
项目中使用rem的可用方案(二)

项目中使用rem的可用方案(二)

作者: 飘空鱼 | 来源:发表于2017-06-14 22:03 被阅读0次

//重置font-size
$(function() {
var _w = $(document).width();
if(_w>=640){
_w = 640;
}
$("html").css("font-size",100/750_w);
window.onresize = function(){
_w = $(document).width();
if(_w>=640){
_w = 640;
}
$("html").css("font-size",100/750
_w);
}
});

相关文章

网友评论

      本文标题:项目中使用rem的可用方案(二)

      本文链接:https://www.haomeiwen.com/subject/wnbeettx.html