【发布时间】:2018-10-16 22:27:11
【问题描述】:
http://stackoverflow.com/questions//container-fluid-vs-container
https://www.jquery-az.com/bootstrap-container-and-container-fluid-what-is-the-difference/
.container 类是固定宽度的容器。这并不意味着 它没有响应。它反应灵敏;但是,它是基于 屏幕尺寸。屏幕尺寸包括:
xs for extra small devices (used for less than 768 e.g smart phones, mobile etc.) sm for small screens (From 768 pixels and up e.g. tablets) md for the medium screen (>= 992 pixels. Desktops/Laptops) lg for large screens (>= 1200. Pixels e.g. large desktops)container-fluid 类将占据视口的整个宽度。如果 您使用容器流体并调整浏览器大小,您可能会注意到 它里面的内容会随着每个像素调整以充分利用 可用宽度。
【问题讨论】:
标签: twitter-bootstrap containers amp-html amp-story