使用rem 然后根据媒体查询实现自适应.跟使用JS来自适应也是同个道理,不过是js更精确一点.使用媒体查询: html { font-size: 62.5% } @media only screen and (min-width: 481px) { html { font-size:94%!important } } @media only screen and (min-width: 561px) { html { font-size:109%!important } } @media onl
(function (win,doc){ if (!win.addEventListener) return; var html=document.documentElement; function setFont() {var cliWidth=html.clientWidth; html.style.fontSize=100*(cliWidth/640)+'px'; } win.addEventListener('resize',setFont,false) doc.addEventList