0
0

More than 3 years have passed since last update.

【初心者向け】たった三行でiOSのinput要素にCSS効かせる方法【iPhone】

Last updated at Posted at 2021-03-18

【備忘録】


Win環境だけで制作してる場合、iPhoneで確認した時このような見た目になることありますよね…

Safariでinput要素にCSSが当たらない場合、

-webkit-appearance: none;
-moz-appearance: none;
appearance: none;

この3行を追加する:writing_hand:
-webkit-のベンダープレフィックスを追加することで、Safariでも効くようになります。

―――――――――――
私も普段Win環境で制作してるので忘れがち。
抜けたまま実機確認して/(^o^)\となるので、inputには一緒に入れるようにしましょう!

0
0
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
0
0