WebSite X5Help Center

 
David D.
David D.
User

Changing a meta tag  en

Autor: David D.
Visited 1212, Followers 1, Udostępniony 0  

Hello - I used an app developer to create app for iPhone and Android that presents my website inside the app.  It works great in iPhone but in Android the pages size up too large.  Their support people are asking me to do something (below).  Please tell me how to do this using X5:

In all your pages, there is a meta tag

<meta name="viewport" content="width=640" />


To make all devices fit your your business, can please rewrite it as


<meta name="viewport" content="width=device-width" />

And also, use CSS media queries to flexibly adapt layouts to suit different screen sizes.


For more info, refer this URL


https://developer.android.com/guide/webapps/targeting.html

Posted on the
1 ODPOWIEDZI
Incomedia
Claudio D.
Incomedia

Hello David,

Did you enable the responsive functionality on your project?

If you enable it then the viewport meta tag will be:

<metaname="viewport" content="width=device-width, initial-scale=1" />

Many thanks!

Czytaj więcej
Posted on the from Claudio D.