Bootstrap + LESS Version: Preventing Zoom on Form Inputs in iOS

Bootstrap less
2017-02-26 19:26 (8 years ago) ytyng
.form-control {
  textarea&,
  input[type="color"] &,
  input[type="date"] &,
  input[type="datetime"] &,
  input[type="datetime-local"] &,
  input[type="email"] &,
  input[type="month"] &,
  input[type="number"] &,
  input[type="password"] &,
  input[type="search"] &,
  input[type="tel"] &,
  input[type="text"] &,
  input[type="time"] &,
  input[type="url"] &,
  input[type="week"] &,
  select:focus & {
    font-size: 16px;
  }
}

Reference: html - Disable Auto Zoom in Input "Text" tag - Safari on iPhone - Stack Overflow

Current rating: 2.3
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011