1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ios14でinputタグの1文字目が大文字になる

Last updated at Posted at 2020-10-01

問題点

<input type="text"/>

例えば上記のコードで Iphone(ios14)でみた場合、
下の図のように デフォルトで1文字目が大文字になってしまう
iOS の画像.jpg

解決策

inputタグに、 autocapitalize="off" autocorrect="off"
というiosのデフォルトの挙動を防ぐコードを追加する

結果
 <input type="text" autocapitalize="off" autocorrect="off"/>

Image from iOS.jpg

※ios14で確認済

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?