Disable zoom on input focus in Android webpage

后端 未结 30 1215
日久生厌
日久生厌 2020-12-02 05:17

Here\'s the dilema, I have a webpage (only for android devices) and in that page I have an input box (a text box specifically) and when it gets focus the browser zooms in. I

30条回答
  •  抹茶落季
    2020-12-02 06:00

    Typically you don't want to disable the accessibility features.

    But you can get around the zoom issue by simply adding a fixed div and placing your web page inside it.

    #app {
      position: fixed;
      top: 0em;
      bottom: 0em;
      left: 0em;
      right: 0em;
      overflow: scroll;
     }
    
    

    
         

提交回复
热议问题