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

王林
Release: 2023-09-07 14:49:02
forward
1324 people have browsed it

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;
}
Copy after login

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;
}
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template