Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8644

Bootstrapの基礎

$
0
0

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

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

 【学習時間】

25分

 【学び】

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

index.html
<!-- Bootstrap CSS --><linkrel="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名は公式サイトのドキュメントに掲載してある
https://getbootstrap.jp/docs/5.0/getting-started/introduction/


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>