Bootstrap网格系统
来源:互联网 发布:中国网络信息安全联盟 编辑:程序博客网 时间:2024/06/11 06:59
1、工作原理:
Bootstrap框架的网格系统工作原理如下:
(1)数据行(.row)必须包含在容器(.container)中,以便为其赋予合适的对齐方式和内距(padding)。如:
<div class="container">
<div class="row"></div>
</div>
(2)在行(.row)中可以添加列(.column),但列数之和不能超过平分的总列数,比如12。如:
<div class="container">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-8"></div>
(3)具体内容应当放置在列容器(column)之内,而且只有列(column)才可以作为行容器(.row)的直接子元素
(4)通过设置内距(padding)从而创建列与列之间的间距。然后通过为第一列和最后一列设置负值的外距(margin)来抵消内距(padding)的影响
2、列偏移:
使用列偏移也非常简单,只需要在列元素上添加类名“col-md-offset-*”(其中星号代表要偏移的列组合数),那么具有这个类名的列就会向右偏移。
3、列排序:
列排序其实就是改变列的方向,就是改变左右浮动,并且设置浮动的距离。在Bootstrap框架的网格系统中是通过添加类名“col-md-push-*”和“col-md-pull-*” (其中星号代表移动的列组合数)。
阅读全文
0 0
- Bootstrap-网格布局系统
- Bootstrap 网格系统
- bootstrap布局 网格系统
- Bootstrap学习:网格系统
- Bootstrap 网格系统
- 10003---BootStrap网格系统
- bootstrap中的网格系统
- Bootstrap网格系统
- bootstrap网格系统
- Bootstrap 网格系统 介绍
- Bootstrap(三) 网格系统
- 详解Bootstrap网格系统
- Bootstrap基础---网格系统
- Bootstrap网格系统
- bootstrap网格系统
- Bootstrap网格系统
- bootstrap的网格系统
- Bootstrap 网格系统
- Makefile
- C++编程之stable_sort
- ubuntu linux 下安装mysql详解
- django中 authenticate返回None的情况解决办法
- Android测试--Monkey
- Bootstrap网格系统
- Feign Hystrix 支持
- A^B Mod C(快速幂算法)
- PCL中ICP配准点云(计算出RT,并且设置不同颜色来显示三个点云)
- 双关系递推
- 【Java学习笔记】Comparable接口的实现和使用
- linux 安装netcdf 库
- 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活(HDU-2191)
- 01背包问题