Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any equivalent to Android's <meta name='viewport' content='target-densitydpi=device-dpi'> for Safari on the iPhone?

When setting meta name='viewport' content='target-densitydpi=device-dpi', the Android browser and Opera Mobile treats a CSS pixel as a device pixel on my device, leaving my stylesheets unmolested.

Is there any equivalent feature that works in Safari on the iPhone?

On my already mobile-friendly, high-DPI-optimized, media-query-powered web application, I'd really appreciate if the browser left my stylesheets alone.

(My full viewport declaration looks like this: meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no; target-densitydpi=device-dpi')

like image 525
Wilhelm Avatar asked Oct 06 '11 12:10

Wilhelm


1 Answers

check this link my be that's help you https://docs.google.com/present/view?id=dkx3qtm_22dxsrgcf4

You can write like this

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

check this link also https://www.davidbcalhoun.com/2010/the-viewport-metatag-mobile-web-part-1/

like image 186
sandeep Avatar answered Oct 25 '22 09:10

sandeep