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
邮票市场邮票市场民居邮票邮票图片邮票行情大龙邮票邮票收藏价格表邮票互动网邮票网文革邮票从青木城走出,稚嫩少年因灭神决走上了一条不归路,灭神决究竟来自何处?为何冥冥当中选择了他?越来越多的谜团困扰着林长滨,鼓舞着林长滨逐渐从青木城中走出,从宗门,从一域,逐渐走向无数位面!陈战寒行走江湖,灭恶贼,除败类。行侠一生。辅助岳飞对抗完颜氏一族,眼看在完颜氏一族赶出国土。无奈,奸臣当政,十块金牌召岳飞班师回招朝。陈战寒心灰意冷,唯有移居海外。 筑灵基,破灵笼,一步一点上天宫,   忆往生,修前程,彼岸尽头照三身。   仙台拂净红尘路,退隐闭居为仙人,   世人皆求长生种,仙路尽头皆为空。奇风历二零二二年,叶玄青自青州出,秉着一颗光明剑心,踏上征途! 这是一个瑰丽而又充满未知的剑道世界,这是一个平凡少年成就绝世强者的传奇! 热血的对决,天才的竞争,七尺剑芒,千里直驱,君子白衣,纵剑天下!重生丧尸即将来袭: “杨老板,您购买的十吨大米到了!还有五吨的小米,三吨黄豆……” ?“杨老板,您订购的一吨牛肉,和一顿猪肉,还有……鸡肉,鸭肉,都到了!” “杨老板,您加急订购的防弹玻璃,还有钢化门,还有加大款的太阳能发电板……已经全部运送到了。”? ?林一穿越—至天风国成为一个地主家的傻儿子。此装疯卖傻 ,扮猪吃虎。在变强的路上 一路嬉笑怒骂,披荆斩棘,最终登临绝顶。同时也收获了,亲情,爱情和友情…在贪的界域! 没有主角。 没有主线。 也没有套路。 只有贪欲,和一尊,贪佛! 佛本仁心,乱起贪作。 芸芸众生,贪而诛之......人生一世,俯仰之间,若草木一秋,忽然而已。 亘古通今,各朝各代寻仙引无止。 曾半仙言: 后世不可解,一线生机,似是故人来,覆辙可移。 然:‘华表精,名隐仙,见之,呼其名,不害人。’ 渡凡成仙早已成就往事,可今望天微光,映照星河,恐有大世。(都市+系统+搞笑+腹黑) 摩天轮上无数情侣正在恩爱。 张北哼着小曲,按下了红色的按钮。 身处于百米高空的摩天轮突然停住。 随后竟然横了过来。 无数坐在椅子上的情侣被弹射到了半空,仅有一个绳子连接。 几秒种后,整个摩天轮就像一个飞速旋转的盘子。 无数情侣在半空中玩起了温馨和谐的游戏。 跳楼机上,九十米高空的人体悠悠球。 碰碰车上,充满僵尸鬼怪的地下逃亡。 医生看着刚刚从过山车上下来的游客,将一颗速效救心丸塞进了壮汉的嘴中。 眼神中充满了幽怨。 “老板,这么下去会死人的!” “不会,你看他们多开心!”
文革邮票 第三轮生肖邮票 世界上第一枚邮票 中国邮票价格表 香港回归纪念邮票 邮票价格 十二生肖邮票 邮票价格 女幽灵 百度网盘下载 迅雷下载 邮票价格 龙邮票 女幽灵 百度网盘下载 迅雷下载 猴年邮票 世界上第一枚邮票 女幽灵 百度网盘下载 迅雷下载 民居邮票 南京文交所钱币邮票交易中心 鸡年邮票 第三轮生肖邮票 纪念邮票 邮票行情 中国邮票价格表 邮票 南京文交所钱币邮票交易中心 邮票交易所 邮票互动网 邮票收藏 邮票互动网 邮票收藏价格表 奥运邮票 猴年邮票 大龙邮票 中国邮票 中国邮票价格表 中国邮票价格表 邮票行情 南京文交所钱币邮票交易中心 香港回归纪念邮票 香港回归纪念邮票 纪念邮票 寂寞不说爱幻界剑神传我真没想统一三国圣界第一剑请问你还在线吗?一品权相这一世,我再次登顶无敌无尽世界成王之路探险日记1相亲修炼手册致命的温柔蓝星天虎被闪电击中意外获得异能刷怪录血弒帝霄地球男孩系统之我在NBA叱咤赛场恶来传月下的召唤噩梦手札不锈钢扶手厂家请复制到浏览器打开 开搬家公司具体怎么做 物流仓库布局设计 马桶分析 高尚卫浴 2013米兰家具展 床 厦门整体衣柜厂家 流力货架 新北川尔玛小区房价 水波帘头图片反向波 北京搬家 电话信息 马桶存水盖 祥云货架 广州长途搬家公司电话 北京市石景山搬家公司 当涂二手房 品牌布艺窗帘 福州二手房价 百叶木衣柜 越野车货架 揭阳市卫浴 南京马桶盖 福田宝安总公司电话 找资阳小区 窗帘店图 台州二手房 仓库有类别 鞋仓库货架 水波幔帘制作方法 陈列货架 神马货架厂 杭州云溪新语公寓房价 水波窗帘帘头裁剪图 吉林市房价 窗帘遮阳 水晶灯价格 金牛搬家公司电话 杭州小区 木材价格 工艺沙发 服装厂货架 整体衣柜安装 墙不平 广州蚂蚁搬家公司电话 中型仓库 家具卖场 马桶掀盖器 湖南通道搬家公司电话 安防厂家 墙砖价格 辊轮式货架 大连沙发团购 粘土价格 人造石价格 太原市搬家公司电话号码 杭州的搬家公司哪家好 水波帘头上下的比例 大众电话 上海二手房税费 窗帘的单位 正水波 卫浴球阀 钢轨道价格 水波幔裁剪 当代国际花园二手房 布艺沙发更换布料 濮阳二手房 卫浴经营 住宿报销 每晚房价不一样 搬运电话 德国威勒沙发 展销 广州办公家具厂 金德水管价格 实木沙发 透光石厂家 衣柜规划 干净衣服和穿过的衣服 彻底分开 昆明搬家公司那家好 热水器混水阀价格 杭州又一城房价 福州整体衣柜 适家 沙发 卫浴标题 KTV沙发 卫浴新国标 北京限价房价格 欧式沙发 进不了楼门 绵阳房价 武夷山二手房价格走势 宝山路小区 太仓二手房 ezio bellotti意大利家具图集 垂直窗帘 窗帘幔水波尺使用方法 西玛卫浴 大衣柜效果图 上折水波帘头边旗 土工格栅价格 灰色 沙发 立邦漆价格表 房价按揭计算器 衣柜橱柜定制 玻璃钢格栅板价格 金顺达货架