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
邮票图片大龙邮票南京文交所钱币邮票交易中心邮票网鸡年邮票邮票图片邮票图片邮票生肖邮票欧美群迅雷下载万千种族的角逐,变异带来的无限能力,从母星到浩瀚宇宙的征程。纪元与文明的一次次更迭中,生命是否在不断进化?能否突破禁锢?抵达那虚无缥缈的终点。宇宙星河   无尽虚空   凌驾于天道之上   掌管无尽宇宙   不被任何人打败   她就是墨星玄董见山夫妇捡到一个失忆少年,少年为保护家人,打残恶霸,带着家人逃到玄都,与各大势力争权夺利,拉开了魔仙争霸的序幕!界王命元将近,亟待传人接位,天下魔仙对界王之位虎视眈眈,远古魔神多番作恶,无上天国搅动风云,末武大乱,已成定局!看少年如何双拳两脚战天下,降尸伏魔登界王! 乾彪的眼光很长远,做事很爽快,从一名保安队长变成一代尊神,其中经历过酸甜苦辣,过五关斩六将,当上神策宫宫主的女婿是他正确的选择。本书又名《王者修炼》、《你爽你牛》、《星际霸主》等。人类文明的进化、病毒变异和外星怪物之间的宇宙关系观天行,识阴阳,纳五行,万化生乎身,守本性。虽历经万难亦不忘福泽一方。且观天珩烟雨,守己之心,从容而行。虽然南宫基的成长有点慢,但这些都是他必须有的经历,要不如何能在各种经历和磨难中成长,又如何超脱,各位看官请耐心与南宫少爷一起经历,让经历成为财富,成功就在不远的地方等着你。 穷困潦倒的大学生陈阳,在经历种种不顺后,意外获得传承,入赘豪门,从此有了开挂的人生……一朝穿越到梦幻西游世界,既然来了就要改变结局,看林逸如何一步步走上巅峰。一个村长的传说。 三年前,许夜的父母因为一场车祸去世,但死因却是溺水而亡。   在调查父母的真正死因时,许夜偶遇了一名午夜时分在桥头寻找自己头颅的红衣女人。   就此便被卷入了一件件离奇的诡异事件当中,在这些事件当中,许夜悄然发现,当年父母的死因似乎就潜藏在其中,一直指引着他朝着一扇不存在的大门迈进......主人公慕成二十五年平凡人生的沉淀与积累。 且看他拥有异能后,怎样的处事风格,怎样造就了辉煌的一生,又是怎样一步步发现灵魂的秘密。 面对强大的守护神帕丁,慕成是如何战胜的,他又将创造怎样的理想世界?
中国邮票价格表 邮票行情 世界上第一枚邮票 中国邮票价格表 第三轮生肖邮票 第三轮生肖邮票 生肖邮票 文革邮票 民居邮票 文革邮票 文革邮票 中国邮票 第三轮生肖邮票 邮票网 民居邮票 龙邮票 上海邮票网 第三轮生肖邮票 女幽灵 百度网盘下载 迅雷下载 邮票互动网 女幽灵 百度网盘下载 迅雷下载 大龙邮票 邮票 邮票互动网 中国邮票价格表 邮票 中国邮票 大龙邮票 南京文交所钱币邮票交易中心 邮票图片 奥运邮票 世界上第一枚邮票 民居邮票 纪念邮票 邮票吧 中国邮票价格表 香港回归纪念邮票 世界上第一枚邮票 邮票交易所 中国邮票价格表 龙魂战神:我的胸口有条龙异界,从当城主开始!江湖,如梦楼海里世界三国之大汉再起霹雳元武我本为圣九天神脉超神御兽师不开挂的末世生存引人入局东山十狼十亿年生人生昆临时代魔祖出世,诸神避让圣龙图腾变身奇遇11科研大佬从相亲走错桌开始界域自由人之替补器修华州不归途捷克住宅小区请复制到浏览器打开 床生产厂家 搬家公司能吊装么 胜豪货架 真正橡木家具价格 窗帘 钩子 家具沙发品牌 家具沙发招商加 阳泉的房价 科洁美卫浴 衣柜 多高 高品质货架 裙摆 窗帘 箭牌 卫浴 花梨木家具 海门二手房 天津贯通货架 货架布置仓库 水波罗马帘的制作视频 济南二手房房价 塑料管厂家 临沂搬家公司 水磨石地面价格 华润房价 皮沙发 框架 大东区搬家公司电话 水波帘头高度是多少 临沂小区 金苑小区 窗帘带挑选 仓库自动化新设备研发 仓库设备和作用 包厢移动隔断厂家 1 2 3欧式沙发摆放模式 淮南窗帘 二手房税费计算器 中国房价排行榜 水波曼窗帘怎么裁 中式家具 风格 水波幔 衣柜设计图纸 阳光板价格 浪鲸马桶 银丰苑房价 现代简约 衣柜 餐厅活动隔断屏风厂家 马桶价格 超市实木货架 爱惠浦净水器价格 大连搬家公司拆卸家具 横梁托盘货架 白色墙 衣柜颜色 济南防盗门厂家 大啡珠厂家 窗帘设计图 上海喜顺搬场官方客服电话 物流仓库cad 2017房价走势最新消息 肇庆货架 小区群名称 传统式仓库 密云区搬家公司电话 和欲卫浴 储备仓库 窗帘水波原版 办公家具大班台 虹口二手房 中国家具网 上海闸北共康路房价 水波帘头款式图片 成都衣柜定制 玻璃窗厂家 卫浴总代理 东鹏马桶 包装 浴室柜中端品牌排行榜 马桶怎么流 施迈尔家浴室柜 艺术家具 锦州凌海新楼房价 304全不锈钢浴室柜 脚手架钢管价格 共江小区二手房价 水表箱厂家 房价走势 仓库与仓储 蚂蚁长途搬家公司电话 世昌货架 二层仓库 舒曼马桶 萦菲亚衣柜 宇彤卫浴 广州办公家具城 玖拾度衣柜 怎么样 高窗半圆水波栽剪视颇 金号毛巾价格 余杭二手房 水晶灯价格 整体衣柜机械 搬家公司用语 罗村时代广场小区图 宁乡二手房 雅宝家具官方网站 玛歌浴室柜