Phonegap + Windows Phone 8 : HTML5 viewport meta & scaling issue

HTMLWeb DevelopmentFront End Technology

Whenever you face such issue, it would mean you have not written the CSS properly.

Just add the following in CSS −

* {
   zoom:1;
   -ms-content-zooming:none;
}

For some code, even the following works −

@viewport
{
   width:320px;
}
@-ms-viewport {
   width:320px;
   zoom-user:fixed;
   max-zoom:1;
   min-zoom:1;
}
raja
Updated on 04-Mar-2020 08:02:15

Advertisements