Unwanted padding at bottom of page when input focussed on mobile safari

前端 未结 4 1491
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-15 05:16

I\'m working with textareas on mobile safari and when a textarea is focussed the viewport seems to add padding underneath the document. When inspecting and selecting the area, i

4条回答
  •  一向
    一向 (楼主)
    2021-02-15 05:41

    That looks like iPhones input zoom feature causing that padding...

    Check the answers here: Disable Auto Zoom in Input "Text" tag - Safari on iPhone

    It seems setting the input field font to 16px disables this feature.

提交回复
热议问题