0
0

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.

bootstrap4 サイズによって表示(非表示)を切り替える

Last updated at Posted at 2022-03-31

レスポンシブ対応のサイトを作る時に、一定のサイズ以上は表示(非表示)にする方法

#"d-none"で基本非表示、"d-○○-block"で○○以上は表示
<div class="d-none d-md-block"></div>
#逆バージョン
<div class="d-block d-md-none"></div>
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?