简体   繁体   中英

Windows Phone browser resize images

Hi I have a Windows Phone app and been trying to have the browser window resize the images on the page to fit the browser window.

I notice the emulator window does this but when I deploy to the phone I get large images. Been searching about for an answer for this. Maybe this is something I've overlooked and simple?

You can do this by setting Viewport meta tags as required.To do so just add meta tag code at start of your html string, as:

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

you can also use minimum-scale property.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM