LoginSignup
5
6

More than 5 years have passed since last update.

iPhoneでvideoを挿入するときにデフォルトの再生ボタンを消す方法

Posted at

やりたいこと

iPhoneでは再生ボタンが表示されサムネイルが隠れてしまうので、CSSで再生ボタンを隠したい。

対処法

style.css
*::-webkit-media-controls-panel {
  display: none!important;
  -webkit-appearance: none;
}

*::--webkit-media-controls-play-button {
  display: none!important;
  -webkit-appearance: none;
}

*::-webkit-media-controls-start-playback-button {
  display: none!important;
  -webkit-appearance: none;
}

参照元

5
6
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
5
6