0
1

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.

【CSSデザイン】iOS_Safariのinput要素のグラデーションを適用させたくない時の対処方法

Posted at

ページ制作時のとてもピンポイントな課題です。

iOS Safariのinputボタンのデザイン
背景色を指定してもボーダーを変えても
グラデーションスタイルが残ります。
※2020年10月現在
botan.png

回避方法

これを回避するためには、
ボタン要素に下記のプロパティを指定します。

-webkit-appearance: none;

例:
<input type="button" style="-webkit-appearance: none;">

これで自身で指定したスタイルを
適用する事が出来ます。

補足

OS/ブラウザの統一性を持たせるために
デフォルトスタイルが用意されていると思います。
個人的にはサイトのデザインを優先させたいですが
これは各々考えがあると思います。。。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?