Bootstrap4与Bootstrap3不同
Bootstrap4与Bootstrap3不同1:移动优先设置
Bootstrap4:
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Bootstrap3:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
Bootstrap4与Bootstrap3不同2:栅格系统
Bootstrap 4 共有5种栅格类,依次是特小(col-)、小(col-sm-)、中(col-md-)、大(col-lg-)、特大(col-xl-)
偏移列通过 offset- 类来设置,例如:.offset-md-4 是把.col-md-4 往右移了四列格。
bootstrap3使用float的布局方式
bootstrap3 共有4种栅格类,依次是特小(col-xs-)、小(col-sm-)、中(col-md-)、大(col-lg-)
bootstrap3里面使用push和pull向左和向右移动
Bootstrap4与Bootstrap3不同3:源码编写
bootstrap4它的源码是采用 Sass 语言编写的
bootstrap3它的源码是采用 Less 语言编写的