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
阿娘 电影剧情鬼胎电影完整版捉鬼大师电影国语版毒品暴力电影2014电影总上映阿娘 电影剧情辛巴达七海传奇电影捉鬼大师电影国语版泰国电影画中情思飘来飘去电影简介2013年十二月份上映的电影捉鬼大师电影国语版早年电影米妮怎么死的2013年十二月份上映的电影中国早期黑白老电影飘来飘去电影简介伦理性爱电影网站关于灵异事件的电影关于灵异事件的电影韩国抓鬼的电影老电影仙女片关于灵异事件的电影泰国电影画中情思幽浮目击者电影完整版邓超演的喜剧电影日韩情爱电影在线观看邓超演的喜剧电影幽浮目击者电影完整版韩国抓鬼的电影早年电影米妮怎么死的何为仙,何为凡,何为万古为众生? 仙为真,凡亦真,成仙逆凡顺本心。 弑仙榜,戮万界,灭仙屠神为永生。 凡人体,破天指,一梦黄粱尘归尘! 我秦殇,身负血仇,心有热血,为凡人一榜弑仙,为众生一指破天! 问:‘若有一天,这世间种种,终不能如你我所愿。当如何?’   答一:‘心若有光,便不惧道阻且长!’   答二:‘剑指苍穹,讨个说法!’   答三:‘那便用生命去守护最珍贵的东西,就算最后仍会一无所有!’   答四:‘那还要这世间何用?’一场精心策划多年的入侵,摧毁了夏月一族最后的净土,为了复仇,也为了让族人活下去,夏月提前肩负起自己的责任。 没想到数年之后,夏月姐妹二人却发现了世界的秘密,在这个不断轮回的世界里,她们是唯一的变数。 我们,只想活下去!韶云,一个弱势的农村娃,逆境中成长的过程。性格内向、外柔内刚,困境中挣扎,有情有意,心地纯洁善良,武才兼备。无奈世俗所迫,家境贫寒过着即凄凉又奋进的生活。从泥巴少年成长到青春豆蔻,一路走来,经历过懵懂到成熟的过程。静茹 , 貌美娇姿,娇柔可爱。乖巧中带着豪爽。两个少小的青梅竹马,到成长后的渐行渐远的情感。带着遗憾走过一段青春无怨的历程。与地球极为相像的平行世界—地星,各个国公司均爆发了生化危机。 无药可解的致命病毒席卷全球,末日降临,“感染者”横行无忌, 杨小海,父母双亡,一无所长,唯一可夸赞之处,便是资深宅男一枚。 赖床的一个早上,梦中巨响彻底改变了命运的轨迹。 别人对致命感染避之唯恐不及,他却混的如鱼得水; 出门打水捡个怪人后,他的世界彻底乱了……在2060年,世界进入量子时代,科技高度发达,各种先进的便民的技术层出不穷,虫洞处于研究阶段,危机随处可见,主角是一位在学校大学生主攻科研天文,爱好广泛涉。在梦里,我梦到了一片海,在海边有一百个人静静地看海。他们说愿意把每个人的故事讲给我,让我写出来。我很羞愧,至今我的作品仍无人问津。他们说相信我,总有一天会闪闪发光。 带着他们的信任我把他们的故事转述出来,这次看似我是作家,其实写作的是他们自己。穿越洪武年间,身为凤阳县令的岳麟,竟被权相胡惟庸弹劾贪污! 皇帝大怒,微服私访,被当做“暴发户”的老朱,自然得到了岳麟的亲切接待。 “这是后膛枪,买了它,北元鞑虏灰飞烟灭,任谁都要给你几分薄面!” “这是工艺坊,十岁小孩弹溜溜,百岁老人盘核桃,出口一本万利!” “这是福利院,老有所依,幼有所养,以后儿孙不孝,免费入住!” 岳麟只觉得,暴发户老朱身后的几个青年,看他的眼神之中充满杀气。 “奉天承运,皇帝诏,曰:岳麟奉旨贪污,为我大明富国强兵!” 他似乎命中注定一生孤独,身边所有亲近之人皆难逃厄运。大敌当前,他空负一身武学却有仇难报。纵然同命运万般抗争,终究仍不免红颜薄命,故友凋零。他唯有斩断尘世纠缠再次只身远走西北大漠,一如当初孤身一人走出茫茫长白山林。天地间回荡起悲怆的歌声……  这个故事是一个大能重生,随着一步步变强,向邪异复仇的故事。(本人初次写书,请多关照,不喜勿喷,谢谢)
滲透者 末世:求生的旅行 莫名成神 剑战诸天 网游:我有亿万只召唤兽 往来夕 女总裁的妙手狂医 恶龙?不存在! 向渊行 我靠读书成圣人 天武剑修 万仙之上 凡人修仙风云 全球震惊!你管这叫普通男人? 虫与爱丽丝 鬼仙?我才是好吧! 人类进化抉择 修灵一族 雄威!大唐无双 抗日狙击手 王千源 好看的 电影 成奎安判官电影全集 伦理性爱电影网站 2014电影总上映 王千源 好看的 电影 电影杜拉拉升职记企业 伦理性爱电影网站 电影中鬼冢虎 日韩情爱电影在线观看 电影吸血僵尸 st电影 st电影 职场微电影名字 成奎安判官电影全集 阿娘 电影剧情 2014电影总上映 黎明演的赌神里边插播的外国电影 日韩情爱电影在线观看 b站没有电影 捉鬼大师电影国语版 成奎安判官电影全集 捉鬼大师电影国语版 b站没有电影 关于灵异事件的电影 飘来飘去电影简介 职场微电影名字 王千源 好看的 电影 鬼胎电影完整版 b站没有电影 日韩情爱电影在线观看 2014电影总上映 电影成龙放 毒品暴力电影 阿娘 电影剧情 幽浮目击者电影完整版 邓超演的喜剧电影 毒品暴力电影 伦理性爱电影网站 职场微电影名字 中国早期黑白老电影 邓超演的喜剧电影 电影中鬼冢虎 道士和鬼的电影 黎明演的赌神里边插播的外国电影 2013年十二月份上映的电影 电影成龙放 st电影 邓超演的喜剧电影 职场微电影名字 滑板会说话的电影 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 侠宇宙 神创节目:我用木棍搭出凌霄宝殿 我与自己对弈 最美神话 南风过境迁 亚星游戏官网 欧博游戏官网 欧博官网 亚星官网 AG真人 王千源 好看的 电影 邓超演的喜剧电影 飘来飘去电影简介 鬼胎电影完整版 关于灵异事件的电影 职场微电影名字 电影吸血僵尸 毒品暴力电影 泰国电影画中情思 泰国电影画中情思 关于灵异事件的电影 关于灵异事件的电影 中国早期黑白老电影 电影中鬼冢虎 电影成龙放 st电影 滑板会说话的电影 幽浮目击者电影完整版 成奎安判官电影全集 b站没有电影 韩国抓鬼的电影 st电影 毒品暴力电影 日韩情爱电影在线观看 st电影 飘来飘去电影简介 2014电影总上映 关于灵异事件的电影 捉鬼大师电影国语版 毒品暴力电影