Home >Web Front-end >HTML Tutorial >Phonegap + Windows Phone 8: HTML5 viewport metadata and scaling issues

Phonegap + Windows Phone 8: HTML5 viewport metadata and scaling issues

王林
王林forward
2023-09-07 14:49:021355browse

Phonegap + Windows Phone 8:HTML5视口元数据和缩放问题

#Whenever you encounter a problem like this, it means you are not writing your CSS correctly.

Just add the following in CSS -

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

For some codes even the following code will work -

@viewport
{
   width:320px;
}
@-ms-viewport {
   width:320px;
   zoom-user:fixed;
   max-zoom:1;
   min-zoom:1;
}

The above is the detailed content of Phonegap + Windows Phone 8: HTML5 viewport metadata and scaling issues. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete