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
邮票网纪念邮票邮票收藏价格表大龙邮票邮票图片邮票网香港回归纪念邮票邮票价格民居邮票邮票交易所我本无意争锋,却被迫推上高位,在血与火中,一步步走到天的举世瞩目的高度,那么就剩下天了......来自他的故事传奇。 魂穿异世,却是副死人身体。景山如何才能集齐五行之精。死而复生……这里才是战鹰战隼的正文,上一部是序章。如果想了解故事情节,请看上一本书。 公司突然把丁海调到一个岛屿上面,丁海如何见证空军部队从二代转为三代的历程。请看本书。程明远,(中共巢合庐中心县委书记,1942年5月-1943年2月) 原名程道富,化名程道福,安徽肥西聚星乡人,生于1900年,1926年参加革命,1929年加入中国共产党。历任中共合肥工委组织部长,合二区区委书记,合肥县委组织部长,县委书记,皖西北中心县委书记兼中央至鄂豫皖交通中心站站长,1943年任巢北支队政委,1943年7月任中共巢合县委书记,后任华东局国区部交通科长,江淮五地委书记兼军分区政委······天道之下的人,在追求着天道。只是,天道又是什么?人在追求什么?随着X市近期出现的多起凶案发生,身为记者的陈峰开始关注此事!在案发现场一个个诡异的数字,就在陈峰开始破译数字时,却遭到了神秘组织的暗杀,经历重重险境,终于陈峰在警方的帮助下,让神秘组织成员相继落网,然而又一个线索让他的世界观彻底崩塌,最终他竟然毅然决定加入神秘组织,一同寻找一切的真相,然而当他最终知道真相后,却选择了隐瞒…… 恭喜绑定育儿成长系统 本系统因不可描述原因 受损程度78%,无法主动提供任何帮助 如遇危险请用爱感化对方 谢谢合作 简介?什么简介 作者已经被整疯了 哈哈哈 假的 假的 全是假的 去你的育儿系统啊啊啊啊!当我接过这杆大旗 我身边没了兄弟 我辈岂是蓬蒿人?扶摇直上九万里!一个高考过后,想去泰山旅游,放松一下心情的少年,因为一个乐于助人的小举动,开启了一场梦幻旅程......20年代地域通往人类的恶魔之门产生裂痕,恶魔从缝隙中进入人类世界,而人类诞生了异能者,每个人的异能各不相同,身体的各项也得到质的提升,并建立的防卫局,专门猎杀恶魔。初期,一位优秀的b级异能者在一次英雄救美中得罪了上级的儿子,被流放到臭名昭著,恶魔横行的乱冈区,并有一个不靠谱的上司王大胖(胖局长),来的第一天解救了一个人,遇见了百年难得一遇的血吞月,也代表着区中心的九层塔即将开启,预示着灾难来临...原来,乱冈区的人并不是人,而是恶魔基因为激发的恶魔....
邮票行情 南京文交所钱币邮票交易中心 邮票吧 十二生肖邮票 猴年邮票 邮票收藏价格表 中国邮票价格表 邮票网 生肖邮票 邮票互动网 奥运邮票 鸡年邮票 邮票 纪念邮票 邮票交易所 邮票图片 邮票网 邮票 中国邮票价格表 生肖邮票 中国邮票价格表 世界上第一枚邮票 大龙邮票 生肖邮票 上海邮票网 中国邮票 上海邮票网 世界上第一枚邮票 邮票市场 文革邮票 十二生肖邮票 邮票吧 女幽灵 百度网盘下载 迅雷下载 鸡年邮票 香港回归纪念邮票 第三轮生肖邮票 文革邮票 邮票吧 中国邮票价格表 第三轮生肖邮票 觅道之极都市:我算命超准名华依在幽冥古神时空造梦人雨做的风网游之星日东北出马仙之仙魔道守护路斩破:希望而生超喜欢女装屌丝道士的异闻录魔幻西游释厄记羽生晴也想过平淡生活我真不是天道啊我的修真游戏化外求真葬尽江湖无极剑道,天元轮回傲策中国卫浴品牌请复制到浏览器打开 地毯价格 浴室柜是实木的好还是pvc的好吗 旧沙发怎样翻新换皮 柏迪衣柜 深圳市龙岗区搬家公司电话 一般小区变电站多少 恒洁卫浴马桶图片 新中式浴室柜定制 长沙市304l_不锈钢扁管40×40×1.5厂家直销 曲美家具网上商城 窗帘幔水波尺使用方法 金山临潮二村房价 有环 保又便宜的衣柜吗 深圳旧沙发怎么处理 厦门整体衣柜定制 室内门价格 横梁货架 广东家具网 窗帘拼接水波 益阳 入墙衣柜 kartell 沙发 美标卫浴 龙华搬家电话 吸音板厂家 马桶CW 昆山二手房青春线最新房价 延静里小区租房价格 衣柜深 景德镇房价 燕郊上上城五期房价 上海家具展览会 双十一卫浴 余杭桃花源迎霞苑二手房价 十大衣柜品牌 电子马桶 南平二手房 北京家具展 公交窗帘 电子锁厂家 石家庄搬家公司电话 泰安二手房网 衣柜正对门 顺德搬家公司 窗帘设 载重货架 衣柜定做 聊城幸福里小区烂尾楼 浴室柜极简风格 阜阳小区图 横梁式货架特点 舒服 沙发 推荐 恒洁马桶价格 二手房抵押贷款流程 水波帘头的腰怎么做 永年广源小区 安阳二手房 蔬菜仓库设计 美国尔湾租房价格 裕中西里小区 空心砖机价格 马桶盖公司 宝恒 家具 搬家公司如何收费 一车 赣州宜居小区公租房图 公司搬家电话 滨州小区 分体式马桶 广州大众搬家公司电话 重庆家具网 天津工厂货架 好莱客衣柜 315活动 定制客厅柜 诺衣柜 腻子 厂家 衣柜 实木多层板 密度板 颗粒板 sbs厂家 上海金山房价 银川蚂蚁搬家公司电话 水晶卷帘门厂家 天津展柜货架厂 伊美嘉衣柜 南京家具 虹吸式马桶的优缺点 璧山二手房 有家具导购业务员的家具卖场如何设计薪酬 衣柜 定制 自制 布艺沙发什么牌子好 北京 房价 智能浴室柜的品牌 正山小种红茶价格 粉煤灰价格 我乐衣柜 铁艺货架 德州二手房网 施迈尔嘉实木浴室柜价格 盼盼木门价格 镂空水波帘头教学 灯杯厂家 杭州 房价 工厂仓库 石英石台面价格 木材价格