一、嚮應式斷點:Bootstrap4 為行動優先的架構,所以預設的斷點為 (xs)
// Extra small devices (portrait phones, less than 576px) // No media query since this is the default in Bootstrap // Small devices (landscape phones, 576px and up) @media (min-width: 576px) { ... } // Medium devices (tablets, 768px and up) @media (min-width: 768px) { ... } // Large devices (desktops, 992px and up) @media (min-width: 992px) { ... } // Extra large devices (large desktops, 1200px and up) @media (min-width: 1200px) { ... }
一、container(固定寬度)
二、container-fluid(滿版寬度)
三、練習