LoginSignup
3
3

More than 3 years have passed since last update.

Bootstrapの基礎①

Last updated at Posted at 2021-01-27

デイトラWeb制作コース初級編DAY10の学び

【この記事に書いてあること】

 【学習時間】

25分

 【学び】

1 Bootstrapの使い方
Bootstrapを使用するには、専用のスタイルシートを読み込む必要がある

index.html
<!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

2 よく使うBootstrapのclass名

・文字の色を変える(青):text-primary

・文字を中央に置く:text-center

・文字を左右に置く(右):text-right

・文字を太くする:font-weight-bold

・文字を細くする:font-weight-light

・文字の背景に色を付ける(青):bg-primary

・フォントをサイズを変更する(一番大きい):display-1

スクリーンショット 2021-01-27 18.40.33.png

3 Bootstrapのclass名は公式サイトのドキュメントに掲載してある
参考サイト: Bootstrapドキュメント

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