Exit the app's code with the app developed by HTML5
Plus.runtime.quit ();
Calculate font-size for different resolutions
Listen for browser change HTML font-size
(function(Doc, win) {varDocel =doc.documentelement, Resizeevt= ' Orientationchange 'inchWindow? ' Orientationchange ': ' Resize ', Recalc=function () { varClientWidth =Docel.clientwidth; if(!clientwidth)return; DocEl.style.fontSize= * (clientwidth/320) + ' px '; }; if(!doc.addeventlistener)return; Win.addeventlistener (Resizeevt, Recalc,false); Doc.addeventlistener (' domcontentloaded ', Recalc,false);}) (document, window);
JS processing response px Conversion REM
function (DESW) { var winw = document.documentElement.clientWidth; if (Winw > desw) { var omain = Document.queryselector (". Box"); = "0 Auto"; = Desw + "px"; return ; } = WINW/DESW * + "px";} (640);
Online PX conversion REM tool Address: Http://520ued.com/tools/rem
Programmer Online Tool
Link address : Http://www.ofmonkey.com/tools/front#rem
Mobile End Essay