Prevent zoom pages in browser for smartphones

For obvious reasons related to size of display, the browser for smartphones make available the features upon which to zoom in and out, Internet pages, there are of course features like navigation programs.

There are some cases where it may be necessary to provide a Web resource in exactly the size defined by the content, for example for image galleries that integrate functionality to zoom in this case it is possible to disable the tools to zoom, this will be possible through a simple header:

<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left;"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <!--320--></span> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <! - 320 -></span>

In general the view through the browser for smartphones is set to a size of “320 * 480 px”, the header shown binding viewing at this scale inactivation Zoom.

Related posts:

  1. Kylo, the browser for TV
  2. Timing redirect with PHP
This entry was posted in Browser and tagged , . Bookmark the permalink.

Comments are closed.