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
北京价格最低logo墙湖南峦树价格狗狗100元以下图片价格原生酱香酒 酱香型价格五粮液牛型瓶价格查询戴尔网卡价格上海江淮国五帅龄vm4.2米价格狗狗100元以下图片价格烽火光纤猫价格杭州 学骑马 价格cfak47b价格2015北京价格最低logo墙东风多利卡 厢式价格西安摇头小狗的价格狗狗100元以下图片价格杭州 学骑马 价格鞍山租车哪家价格最低济南黄焖鸡酱料配方价格济南黄焖鸡酱料配方价格山东干熄焦价格烽火光纤猫 价格济南黄焖鸡酱料配方价格烽火光纤猫价格成州醇价格五粮液牛型瓶价格查询西安家政擦玻璃价格原生酱香酒 酱香型价格成州醇价格65度铅粉价格东风多利卡 厢式价格一个现代人到了古代会做什么。 裴尘对自己说: 如果这一切都是梦,梦醒时自然烟消云散。 如果这一切不是梦,那我要做的就是,好好活着,也让我身边的人,好好活着。 大周王朝,内忧外患,民不聊生,在这样的环境下,自己不愿随波逐流,想要改变。 事情要么不做,要么就做到极致。 纺织、制弩、黑火药、香皂、制盐、炼钢…… 一步一步的布局,一点一点的强大。 也有对喜欢人儿的心动、感动、冲动,以及对传说中武功的向往。 朝歌夜弦,莫过一本好看的书,莫过一首美曲罢了  叮!成功绑定最强昏君系统,尽情的败坏国运吧!   当人皇哪有当天帝爽!?   这江山社稷美人皇权,不要也罢!   “小江子,你现在都是武林至尊了,什么时候祸乱苍生啊?”   “爱妃,你快点起兵谋反啊!”   “陛下乃是千古圣君,我等必将鞠躬尽瘁死而后已!”   无语!朕何时能成天帝? 为保护女友而伤人的徐枫,入狱三年意外获得一身本领。 没想到出狱后,女友竟然要嫁给当年的仇人。 可怜这瞎眼的女人,本可一步登天,却选择坠入炼狱!他身处异乡十年,了无音讯,甚至父亲去世都没能在身边守孝。 而她为了当初爷爷的承诺,身为全市最耀眼的女人,却为了一个没有见过的男人去替他父亲守灵。 一个是女总裁,另一个是寂寂无名,在外人眼里是个穷小子的男人,本就不被看好的一对最后的结局又是怎么样?讲述神秘世界吴志,经过兄弟师父以及其他朋友的帮助,慢慢成为守护者世道不靖,民生皆苦。 黑暗里的幽灵,星空中的刺客。 天上地下屠魔弑神,只为创造一个美好的世界! 他是一个来自异世界的灵魂。 不甘心命运被安排,反感这个恶者逍遥自在,善者不得善终的黑暗世界。 为了实现理想,他一路苟着做人,努力积蓄力量,终于改天换日,重塑乾坤!在阴间地府一个名叫彼岸樱的大陆岛上,封印着最强的鬼魂兽。由于某天地府动荡不安,造成了被封印物品全部被散开而去,脱逃的封印的鬼魂兽也由于受到了这个天象的影响也只好隐逸修养找到合适合适的时机扰乱三界的和平状态从而称霸天下。在此阎王突然注意到了这个状况于是就吩咐李元吉鬼皇赶紧找到封印的封印物品封印鬼魂兽让三界秩序依旧和平如常,于是故事就这样慢慢的开始展开了.....少年从小厄运缠身,身边人一个个离去,阴差阳错来到异世大陆,被人救治,却给救人者带来不幸,自己也再次涉险,从此开始流浪,在流浪中修炼,在流浪中成长,最终......一名高中落魄少年意外死亡,竟然离奇穿越被收养,多年后因战乱亲朋被杀,踏上修仙之路,寻找凶手复仇......
溪尘 万古帝尊 龙神不休 我不止是个御兽师 转生异世界却成为失忆者 度魂刀笔师 人在三国,开局收吕布当义子 荒村游记 开局赠送师妹机缘,获得暴击补偿! 星际扫地机器人 炎帝! 吾乃科技仙尊 魔法师的异界 异界枭雄崛起篇 烤冷面 帝国第一纨绔 玄幻:我,修改万物,万古独尊! 重生:星辰剑帝 造梦社 文学杂记 福建厦门甘蓝价格 cfAK47-B价格 鞍山租车哪家价格最低 济南黄焖鸡酱料配方价格 福建厦门甘蓝价格 洗悦 洗剂价格 广汽飞亚特价格 小红马价格 西安家政擦玻璃价格 东风多利卡 厢式价格 烽火光纤猫价格 口福调和油5l价格 猫咪价格排行榜 杭州 学骑马 价格 戴尔网卡价格 五粮液牛型瓶价格查询 广汽飞亚特价格 西安家政擦玻璃价格 烽火光纤猫 价格 北京价格最低logo墙 cfAK47-B价格 狗狗100元以下图片价格 湖南峦树价格 西安摇头小狗的价格 杭州 学骑马 价格 猫咪价格排行榜 西安家政擦玻璃价格 湖南峦树价格 烽火光纤猫 价格 西安家政擦玻璃价格 五粮液牛型瓶价格查询 cfAK47-B价格 昆虫记价格 北京价格最低logo墙 成州醇价格 五粮液牛型瓶价格查询 昆虫记价格 鞍山租车哪家价格最低 猫咪价格排行榜 狗狗100元以下图片价格 原生酱香酒 酱香型价格 耕王254拖拉机价格 山东干熄焦价格 口福调和油5l价格 西安摇头小狗的价格 cfAK47-B价格 口福调和油5l价格 原生酱香酒 酱香型价格 65度铅粉价格 上海江淮国五帅龄vm4.2米价格 亚星官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 烽火重归 我的老师竟然是黑客 一剑长空 离婚后,我捧红了文娱天后 现实神传 亚星管理平台 澳门葡京官网 AG真人 亚星管理平台 万利官网 cfak47b价格2015 戴尔网卡价格 鞍山租车哪家价格最低 上海江淮国五帅龄vm4.2米价格 狗狗100元以下图片价格 昆虫记价格 65度铅粉价格 cfak47b价格2015 原生酱香酒 酱香型价格 江淮帅玲康明斯3.8价格 烽火光纤猫价格 戴尔网卡价格 济南黄焖鸡酱料配方价格 口福调和油5l价格 狗狗100元以下图片价格 湖南峦树价格 戴尔网卡价格 山东干熄焦价格 上海江淮国五帅龄vm4.2米价格 上海江淮国五帅龄vm4.2米价格 北京价格最低logo墙 狗狗100元以下图片价格 65度铅粉价格 山东干熄焦价格 昆虫记价格 五粮液牛型瓶价格查询 杭州 学骑马 价格 烽火光纤猫 价格 猫咪价格排行榜 广汽飞亚特价格