@media only screen and (min-width: 310px) and (max-width: 360px) { }@media only screen and (min-width: 360px) and (max-width: 374px) { } @media only screen and (min-width: 375px) and (max-width: 400px) { } @media only screen and (min-width: 400px) an…
@media screen and (max-width:360px){body,input,select{font-size:38%}} @media screen and (min-width:360px){body,input,select{font-size:15.75px}} @media screen and (min-width:400px){body,input,select{font-size:17.5px}} @media screen and (min-width:480p…
有关编写手机页面(ipad页面)自适应的方法有很多,比如:bootstrap,rem等等.下面分享给大家一个js控制viewPort视区自适应缩放的方法(我给它命名为phone.js): 将phone.js引入在jq库之后 下面是phone.js的详细代码(新建一个js文件,直接copy内容,引入到页面中就可以): var view_timer = null; function viewPort(userAgent, pageWidth) { var oView = document.getEl…
@media only screen and (width: 320px) { html { font-size: 16px; }} @media only screen and (width: 360px) { html { font-size: 18px; }} @media only screen and (width: 375px) { html { font-size: 18.75px; }} @media only screen and (width: 400px) { html {…