<script type="text/javascript">
$(function(){
function size() {
winWidth = $(window).width();
if (winWidth < 750) {
$("html").css("fontSize", (winWidth / 10).toFixed(1) + "px");
} else {
$("html").removeAttr("style");
}
} size();
$(window).resize(function () {
size();
}); })
</script>
相关文章
- 07-27响应式用法rem,需要加入这段JS