关键词搜索

全站搜索
×
密码登录在这里
×
注册会员

已有账号? 请点击

忘记密码

已有账号? 请点击

使用其他方式登录

bootstrap3和bootstrap4区别是什么

发布2022-07-04 浏览540次

详情内容

在bootstrap4出现之后修改了bootstrap3的不方便之处,让使用框架的前端开发者更加便捷,虽然现在boostrap已经出到boostrap5了,但在国内还是bootstrap3和bootstrap4居多,下面讲讲bootstrap3和bootstrap4主要区别有哪些?

image.png

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,minimum-scale=1,maximum-scale=1,user-scalable=no" />


2.源码编写不同

bootstrap4它的源码是采用 Sass 语言编写的;
bootstrap3它的源码是采用 Less 语言编写的。

3.栅格系统不同

bootstrap 4 共有5种栅格类,依次是特小(col-)、小(col-sm-)、中(col-md-)、大(col-lg-)、特大(col-xl-)

bootstrap3 共有4种栅格类,依次是特小(col-xs-)、小(col-sm-)、中(col-md-)、大(col-lg-)

4.布局方式不同

Bootstrap 4使用弹性盒模型(flexbox)的布局方式,偏移列通过offset-类设置,例如:.offset-md-4 是把.col-md-4 往右移了四列格;
bootstrap3使用float的布局方式,使用push和pull向左和向右移动。

点击QQ咨询
开通会员
上传资源赚钱
返回顶部
×
  • 微信支付
  • 支付宝付款
扫码支付
微信扫码支付
请使用微信描二维码支付
×

提示信息

×

选择支付方式

  • 微信支付
  • 支付宝付款
确定支付下载