[草稿] Bootstrap 2.3.2 开发规范

其实 Bootstrap 官方网站已经停止了对 2.3.2 版本的维护,不过由于不少的网站依然采用该部署方式,为了更好的维护现有的项目,我们依然还学习和了解旧版本的 Bootstrap 使用。

  1. 用 Container 来包围主要内容

Bootstrap 中涉及 Container 的代码如下:

.container {
  margin-right: auto;
  margin-left: auto;
  *zoom: 1;
}

.container:before,
.container:after {
  display: table;
  line-height: 0;
  content: "";
}

.container:after {
  clear: both;
}

.container-fluid {
  padding-right: 20px;
  padding-left: 20px;
  *zoom: 1;
}

.container-fluid:before,
.container-fluid:after {
  display: table;
  line-height: 0;
  content: "";
}

.container-fluid:after {
  clear: both;
}

我们可以看到这里有两种的 container,其中 container 是用于一般的部署的,而 container-fluid 用于自适应的部署方式。而在 Bootstrap 3.x 中 container 本身就已经完成了自适应的设置,这是两个版本中的一个区别。

  1. 待续...

转载于:https://my.oschina.net/wjlin/blog/403325

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值