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?

学習72日目

Posted at

テーマ

bootstrapの使用(table編)

前提

  • ruby on railsで個人開発中
  • bootstrap導入済
  • tableを表示させる部分がある
  • 該当箇所以外の記述は省略

内容

詳細は公式ドキュメントを参照。
https://getbootstrap.jp/docs/5.3/content/tables/

(例)枠ありのテーブルにしたい場合

<table class="table table-bordered">
  ...
</table>

(例)色付きの枠にしたい場合
※公式ドキュメントを参照し、目的に合ったものを選ぶこと

<table class="table table-bordered border-primary">
  ...
</table>

(例)背景を黒・枠無しにしたい場合

<table class="table table-dark table-borderless">
  ...
</table>

(例)テーブルの先頭行のみ明るくしたい場合

<table class="table">
  <thead class="table-light">
    ...
  </thead>
  <tbody>
    ...
  </tbody>
</table>

コメント

標準搭載されているクラスが多すぎて、目的に合うものを見つけるのが大変だと感じた。

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?