iOS で見た時にフォームインプットにズームさせない Bootstrap + LESS版

投稿者: ytyng 7 年, 1 ヶ月 前
.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;
}
}

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

現在の評価: 2.3

コメント

アーカイブ

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