Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
Disable Zoom on mobile devices

I was following this guide to disable zoom for mobile devices.

https://davidwalsh.name/zoom-mobile-browsers

As many others have suggested the guide suggests using:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <!--320-->

I've tried this and several variations with the viewport and I cannot get it to work. Also when looking at the example from the guide I followed I realized it also doesn't work.

https://davidwalsh.name/demo/mobile-viewport.php

Any thoughts on why this is not working and any suggestions on how to make it work would be greatly appreciated!

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Your code is ok, the problem is iOS specific. Quoted from another question here on stackoverflow:

For the people looking for an iOS 10 solution, user-scaleable=no is disabled in Safari for iOS 10. The reason is that Apple is trying to improve accessibility by allowing people to zoom on web pages.

See the whole thread here: How do you disable viewport zooming on Mobile Safari?

Or this one: disable viewport zooming iOS 10 safari?

over 4 years ago · Santiago Trujillo Relatório

0

This one should work:

<!DOCTYPE html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
over 4 years ago · Santiago Trujillo Relatório

0

I made a simple application. I chance style with max-zoom: 3;

Note; max-zoom: 3 code run for disable double click. This note is true even if min-zoom: 3 is added.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda