1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

The default grid system provided in Bootstrap utilizes 12 columns that render out at widths of 724px, 940px (default without responsive CSS included), and 1170px. Below 767px viewports, the columns become fluid and stack vertically.

<div class="row">
    <div class="span4">...</div>
    <div class="span8">...</div>
</div>

As shown here, a basic layout can be created with two "columns", each spanning a number of the 12 foundational columns we defined as part of our grid system.


Offsetting columns

4
4 offset 4
3 offset 3
3 offset 3
8 offset 4
<div class="row">
    <div class="span4">...</div>
    <div class="span4 offset4">...</div>
</div>

Nesting columns

With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.

Example

p>Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested .span3 columns should be placed within a .span6.

Level 1 of column
Level 2
Level 2
<div class="row">
     <div class="span6">
        Level 1 column
        <div class="row">
            <div class="span3">Level 2</div>
            <div class="span3">Level 2</div>
        </div>
    </div>
</div>

Fluid columns

1
1
1
1
1
1
1
1
1
1
1
1
4
4
4
4
8
6
6
12

Percents, not pixels

The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.

Fluid rows

Make any row fluid simply by changing .row to .row-fluid. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.

Markup

<div class="row-fluid">
    <div class="span4">...</div>
    <div class="span8">...</div>
</div>

Fluid nesting

Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.

Fluid 12
Fluid 6
Fluid 6
<div class="row-fluid">
    <div class="span12">
        Level 1 of column
        <div class="row-fluid">
            <div class="span6">Level 2</div>
            <div class="span6">Level 2</div>
        </div>
    </div>
</div>

Fixed layout

The default and simple 940px-wide, centered layout for just about any website or page provided by a single <div class="container">.

<body>
    <div class="container">
        ...
    </div>
</body>

Fluid layout

<div class="container-fluid"> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span2">
            <!--Sidebar content-->
        </div>
        <div class="span10">
            <!--Body content-->
        </div>
    </div>
</div>

What they do

Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.

  • Modify the width of column in our grid
  • Stack elements instead of float wherever necessary
  • Resize headings and text to be more appropriate for devices

Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.

Supported devices

Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

Label Layout width Column width Gutter width
Smartphones 480px and below Fluid columns, no fixed widths
Smartphones to tablets 767px and below Fluid columns, no fixed widths
Portrait tablets 768px and above 42px 20px
Default 980px and up 60px 20px
Large display 1200px and up 70px 30px

Requires meta tag

To ensure devices display responsive pages properly, include the viewport meta tag.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Using the media queries

Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:

  1. Use the compiled responsive version, bootstrap-responsive.css
  2. Add @import "responsive.less" and recompile Bootstrap
  3. Modify and recompile responsive.less as a separate file

Why not just include it? Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.

  /* Landscape phones and down */
  @media (max-width: 480px) { ... }
  /* Landscape phone to portrait tablet */
  @media (max-width: 767px) { ... }
  /* Portrait tablet to landscape and desktop */
  @media (min-width: 768px) and (max-width: 979px) { ... }
  /* Large desktop */
  @media (min-width: 1200px) { ... }

Responsive utility classes

What are they

For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.

When to use

Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.

For example, you might show a <select> element for nav on mobile layouts, but not on tablets or desktops.

Support classes

Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in responsive.less.

Class Phones 480px and below Tablets 767px and below Desktops 768px and above
.visible-phone Visible
.visible-tablet Visible
.visible-desktop Visible
.hidden-phone Visible Visible
.hidden-tablet Visible Visible
.hidden-desktop Visible Visible
龙邮票欧美群迅雷下载鸡年邮票猴年邮票中国邮票价格表第三轮生肖邮票龙邮票生肖邮票邮票吧邮票收藏价格表本书可能有一些MOD与事实不符,不好勿喷落云大陆是片修行大陆。 修行者们按照实力划分成了七个等级。 学徒、使者、执事、仙师、供奉、仙王、仙主。 等级越高,享有的资源分配越多、权力越大,高坐云端的仙主,拥有至高无上的权力-- 天启年间,年轻的朱由校,望一举解决辽东之患,然而,事态之发展,却出乎他的意料,最后,竟然导致了更大的灾难……秦天明穿越小说世界,成为小说中一个戏份不多的反派。 系统:只要宿主你完美杀青,就能够带着本系统回到你原本的世界当龙傲天。 秦天明:简单,演反派我最在行了! 结果女主不按剧本来,开始疯狂倒贴。 秦天明:能别倒贴了吗?我只想杀青啊!男主呢?你怎么还抑郁了?!伏羲献祭,生命之枯萎,生命之种种子散落各地,十二颗生命种子地方都成为了禁地,经历九万年生之种开始发芽了。 灭门惨案人族少年开起了复仇之路二十一世纪中期,蓝星战乱频发,超级大国之间也被迫参战。 满目疮痍之余,超级自然灾害被触发,使得某超级大国顷刻间被自然灾害摧毁殆尽。 绝望之下,已到灭国境地的他们将所有的核武无差别的释放了出去…… 文明被摧毁,苟延残喘下的生命迎来了新生。但是更多的危机却也接踵而来……当家族中人与救命恩人都死在自己的面前,我第一次发觉自己的无能 我不是圣人,做不到善良;我也不是恶人,做不到杀戮。 但我明白一个词,杀人偿命。 君子报仇,十年不晚,你们做好被复仇的准备了吗? 半人半妖的他;提着修罗魔刀,踏上尸山血海的修罗路,一刀,一式,一人,灭魔,诛神,斩天道。一个出身贫寒的人 ,进入警局有多大的用处女主意外穿越时空,来到了西游世界,投胎成三界的救世主,并结识唐僧师徒四人。 凭借着资质和努力,她很快习得法术,脱胎换骨。在这里,她也相遇了很多伙伴,和取经团队一起行侠仗义,除暴安良,这是个不一样的西游故事,不一样的人物设定,全新的西游之旅
上海邮票网 邮票市场 邮票网 邮票市场 邮票收藏 文革邮票 女幽灵 百度网盘下载 迅雷下载 欧美群迅雷下载 邮票网 十二生肖邮票 邮票收藏 龙邮票 猴年邮票 中国邮票 女幽灵 百度网盘下载 迅雷下载 上海邮票网 邮票 猴年邮票 邮票互动网 南京文交所钱币邮票交易中心 邮票互动网 纪念邮票 邮票价格 南京文交所钱币邮票交易中心 第三轮生肖邮票 邮票交易所 第三轮生肖邮票 纪念邮票 文革邮票 邮票网 世界上第一枚邮票 鸡年邮票 邮票市场 龙邮票 邮票图片 邮票行情 邮票网 世界上第一枚邮票 邮票互动网 奥运邮票 末世诸天进化黑色的王座山海烟尘被仙界除名竟成妖族王者吾觞次元龙皇战尊诸天,从原神开始老婆重生后,我成了世界首富凶兽降临,率领人族镇守九州越空行者三国昭昊传高三的我回到小学复仇启示录大玄驱魔人诸神童话重生之开局伪装成大佬太虚帝君唯我唯路梦中的失落之城不正经星期五曙光环好布衣柜请复制到浏览器打开 冠美卫浴镜 沟盖板生产厂家 易丰官方客服电话 卫浴广告语 重庆二手房买卖 美凯龙家具网上商城 苏州仓库货架 家具工程 几家工厂货物在码头仓库装柜出货货物清单分不清怎么办 焦作二手房 苏州二手房青剑湖房价趋势 水波幔图解 微晶石浴室柜厂家 布艺沙发 图片 衣柜怎么拆 透光石厂家 深圳窗帘厂 美标浴室柜 星河湾小区 重庆市沙发企业 办公家具配套 家具沙发 马桶冲洗 深圳红蚂蚁搬家公司 整体窗帘 附近有没有搬家公司 金碧源卫浴 聚酯的价格 卫浴网 化学品货架 书柜加衣柜 地板价格 本科卫浴 长治永祥小区二手房 南苑小区 牧野马桶 滨江搬家电话号码 韩剧衣柜 嘉兴二手房 成都新都搬家公司电话 苏绣价格 临沂角钢货架批发电话 马桶落水器 浴室柜什么牌子 窗帘水波制作 红景天价格 佳木斯二手房 马桶坐圈 二手房可以贷款吗 青岛搬家公司电话 水波幔尺怎么用 北京市通州区搬家公司 仓储笼货架 仓库地龙 洛阳房价2017降价楼盘 紫色水波幔窗帘图片 信阳房价 轻型货架仓库图片 安徽家具公司简介 芭曼卫浴 街道清扫车价格 变压器价格 欧牌马桶 成都老兵搬家电话 上海到焦作物流沙发多少钱 进口卫浴合同 亦庄的房价 水波的裁剪方法 防盗门密码锁价格 惠州 光辉 德夫曼整体衣柜 广州库房货架 冷链立体仓库 武穴市房价 窗帘镂空水波裁剪教程 瀚澜苑房价 凯撒浴室柜 货架微博 深圳 蚂蚁 搬家公司 亚伟特马桶 定制衣柜十大品牌 全国十大家具排名 家具批发网 株洲房价 枣阳二手房 货架摆设 自动化仓库的设备有哪些问题 电马桶原理 仓储货架 整体衣柜销售视频 蒲江二手房 多乐士价格 整体衣柜 五金的选择 山东省济南市仓库电话 燃气灶价格 等候椅 家具家具 东莞市搬家公司电话 沈阳房价 衣柜是深色的想换个颜色怎么办 青岛市北老兵搬家公司 武汉黄陂盘龙城房价 防盗门厂家