Bootstrap 的 container是用來定義最外層的容器,主要有兩種用法-
container-fluid 滿版寬度-
頁面寬度 = 螢幕寬度
通常用於有滿板需求,且對各螢幕尺寸沒有嚴格定義最大寬度時使用
container 階段固定寬度-
| 螢幕 | 網頁 |
| < 575px | auto |
| 576px ~ 768px | 540px |
| 768px ~ 992px | 720px |
| 992px ~ 1140px | 960px |
| > 1200px | 1140px |
參考資料
六角學院課程:https://www.udemy.com/getbootstrap-4/
官方網站:https://getbootstrap.com/
中文網(六角學院翻譯):https://bootstrap.hexschool.com/