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

前端 未结 4 1555
眼角桃花
眼角桃花 2021-02-15 05:18

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:35

    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.

提交回复
热议问题