Bootstrap 学习

Grid notes

  • Always 12 columns
  • Smaller sizes set the default for larger sizes
    • col-sm- would set the size for small, medium and large screens unless overridden by a setting specific to one of the larger sizes
  • There is a 30px "gutter", or empty space, between each column (15px on each side of the column)
  • The gutter on the outside of the container varies based on the current screen size
    • Extra small devices always use the entire width of the screen

Extra small devices
e.g. phones
(< 768 px)
Small devices
e.g. tablets
(≥ 768 px)
Medium devices
e.g. laptops
(≥ 992 px)
Large devices
e.g. desktops
(≥ 1200 px)
Container widthNone (auto)750px970px1170px
Column class prefixcol-xs-col-sm-col-md-col-lg-
Column widthAuto60px75px95px

The screens sizes that Bootstrap uses are not random, but rather based on research on common device sizes. While you can change the screen sizes, because Bootstrap does use CSS, you want to use the defaults provided.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值