布局容器container 和流式布局容器container-fluid

布局容器 container

container是用于布局页面的容器类.作用和网页的版心类似.container有固定的宽度和页面居中的效果.
container的固定宽度是根据屏幕的大小来变化的
屏幕类型 页面宽度 container宽度
xs 小于768px 等于页面宽度
sm 768~992px(不含) 750px
md 992~1200px(不含) 970px
lg 大于1200px 1170px






.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}

流式布局容器container-fluid

container-fluid 流式布局容器器,作⽤用和container一样,区别在于container-fluid宽度随着父容器变
化而变化,没有固定宽度。

你可能感兴趣的:(Bootstrap)