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
苏行乐驯夫记txt天龙总裁天师妻txt选新娘txt芙洛未删减txt老婆是土匪txt苏行乐驯夫记txt重生之星空巨蚊txt选新娘txt穿越之女配大人txt秀色txt书包网下载如梦令之天朝女捕快txt下载苏行乐驯夫记txt百年月亮晒恩爱txt如梦令之天朝女捕快txt下载选新娘txt小说在你吻我之前txt下载鲁滨逊漂流记下载txt老婆是土匪txt老婆是土匪txt三千界君飞絮txt三生三世连理枝txt下载大道争锋txt下载奇书穿越之女配大人txt超时空大帝国txt下载重生之我的侍卫大人txt下载萝莉的活不好干[天是红河岸]txt芙洛未删减txt盗墓秘籍txt下载三千界君飞絮txt春药txt在50年以后,地球已经不适合生存了,人类创造了天空之城“天国”。智械时代的发展已经不可抑制,在天空飘荡的“天国”,在地面上拥挤的“废窑”,有一个什么都能修的人,那是一个传说,一个希望……刚穿越到文娱世界,杨墨就发现自己身边躺了个一丝不挂的小网红! 外头的女星老婆更是疯狂敲门呵斥。 “杨墨!你给老娘滚出来!“ “有本事偷人,没胆量见我是不是!“ 于是乎,郁闷的杨墨发现,自己成了活生生的冤种! 小网红没碰到,还被高挑的女星老婆摆了一道! 唯一的目的就是离婚! 离婚后,激活了系统的杨墨,无奈成了当下炙手可热的腿精高冷女神林婉璇的私人男助理。 上班第一天,又将女上司看了个精光! 有了系统傍身,杨墨只能在“旧邀社区“注册了自己的ID”久邀秦先生“,从此开始了一发不可收拾的文娱巨擘之路! 穿越成大明最后一个皇太子,朱慈烺觉的压力很大。 在这个非外挂不能救的大明,还好神级选择系统降临。 【怒怼当朝首辅,奖励两千戚家军,奖励项羽之力!】 【斩杀贪污正三品府尹,奖励秘鲁铳制作工艺。】 【斩杀临阵脱逃赵国公,奖励神机大炮。】 【不破不立,清洗腐败朝堂,奖励世界地图!】 射程即是真理,口径即是正义。 破敌蔻,除跶掳,解海禁,让大明的荣光响彻世界!来自星辰的启示, 人与神明相抗争。 超前进化的智慧, 痴迷幻梦不愿醒。 败军之将,梦途惊醒,逆天改命,铸就新(醒)程。 一朝穿越,杨轩竟被拉上学校舞台救场。 没想到自己却一曲成名了。 更让他没想到的是,这个世界的文娱发展滞后。 满足不了杨轩的精神世界。 那么,丰富文娱,只好靠我了!睁开双眼,傅休已经站在陌生又熟悉的地方。 “转移成功了。” 那么接下来,便是编程勇者改变故事的故事! (本书已定好全文,前期普通的龙傲天旅行,中期会触发心魔事件黑化,结局将会作为最终boss被勇者魔王还有联盟军杀死,要是有活着的读者反馈观感可能会改改走向(+_+)?) (另:作者一贯秉承,不求出彩的文笔,但求不降智的情节。所以一旦有大家觉得奇怪的地方,可以大大方方地指出)异世界重生 一穷二白, 苏醒后只有个关心自己的漂亮妹妹。修炼一途,乃夺天地之造化,吞日月之精华,探世间之奥妙,成不朽之传奇。 成陪你笑,败与你抗。 踏破千里城阙,修身逆世。 笑看世间苍茫,吾主沉浮。 该篇文章刻画了一只平凡的毛毛虫,在遇到生活中令它困惑的事时的所见所闻以及内心的想法,全篇没有跌宕起伏的情节,和我们平凡的生活相似,却暗含哲理。 毕业于南疆理工学院地质系的蒙古族姑娘齐林终其一生破译了祖先留下的金牌上的秘密,找到了蒙古大军留下的东夏国的宝藏,同时也为国家找到了一个大型的有色金属矿藏。齐林男友,小提琴家杨文负气辞去歌舞团副团长职务下海,最终成为作家。武术家林飞的两个孙子,一个成为研究太阳能的军事科技专家,一个成为药物学专家。瞿永明因受贿下狱,他姑娘为了父亲留在南当,通过自己的努力,成功创办了香料公司。范宝忠、范宝德兄弟俩的子女,一个成为私募基金老板,一个成为冶金专家。副市长常伟因害怕组织追究跳楼自杀,朱丽丽因受贿罪坐牢死于狱中。他们俩的私生子,通过自己的奋斗,成了一名钢琴家。杨文的追求者李萍,也成为了著名的舞蹈家。她终身追求杨文,最终无缘,终究只做了好友。本书还描写了南当人民英勇抗日、抗美援朝的事迹。歌颂了南当人民建设自己的家园,努力打造锡文化,把南当建设成为世界锡都的事迹。本书共80万字。
灵气复苏我有幻想置换器 蛮荒世界的记忆:万王之王 幻墨尘世 九霄神殿 谭家菜 封神榜之天庭新秩序 我要挽救这个被我摧毁世界 网大公开课进群 风生水起之童多宝 破界仙 人 行道 重启永恒纪元 太阳帝国英雄传 凡人轶事录 穿越在无尽世界当宅男 万武记 扶统 八门少帅 大梦一世 真情第一部不落要塞 萝莉的活不好干[天是红河岸]txt 小说在你吻我之前txt下载 嫡女傻妃番外txt 老婆是土匪txt 天龙总裁天师妻txt 盗墓秘籍txt下载 嫡女傻妃番外txt 修仙之不走老路txt 玻璃心五月艾草txt 百年月亮晒恩爱txt 献给脑补过度的剧情大神txt 献给脑补过度的剧情大神txt 超时空大帝国txt下载 小说在你吻我之前txt下载 苏行乐驯夫记txt 重生之我的侍卫大人txt下载 农家小小女txt 萝莉的活不好干[天是红河岸]txt 苗小宝成长日记txt下载 选新娘txt 不悔江湖憔悴剑txt下载 选新娘txt 苗小宝成长日记txt下载 大道争锋txt下载奇书 秀色txt书包网下载 帅气逼人的历史txt下载 萝莉的活不好干[天是红河岸]txt 苗小宝成长日记txt下载 苗小宝成长日记txt下载 玻璃心五月艾草txt 老婆是土匪txt 不悔江湖憔悴剑txt下载 芙洛未删减txt 苏行乐驯夫记txt 超时空大帝国txt下载 重生之我的侍卫大人txt下载 芙洛未删减txt 嫡女傻妃番外txt 超时空大帝国txt下载 异界养殖大户txt下载 重生之我的侍卫大人txt下载 修仙之不走老路txt 三千界君飞絮txt 农家小小女txt 如梦令之天朝女捕快txt下载 不悔江湖憔悴剑txt下载 献给脑补过度的剧情大神txt 重生之我的侍卫大人txt下载 帅气逼人的历史txt下载 鲁滨逊漂流记下载txt 亚星官网 亚星官网 亚星官网 亚星官网 亚星游戏官网 曙光之壤 与春同行六十年 俏无常 从前有个小道士 可乐鸡可乐 AG真人 欧博官网 亚星游戏官网 AG真人 百家乐官网 芙洛未删减txt 鲁滨逊漂流记下载txt 萝莉的活不好干[天是红河岸]txt 农家小小女txt 鲁滨逊漂流记下载txt 三千界君飞絮txt 嫡女傻妃番外txt 穿越之女配大人txt 帅气逼人的历史txt下载 三生三世连理枝txt下载 小说在你吻我之前txt下载 天龙总裁天师妻txt 小说在你吻我之前txt下载 芙洛未删减txt 秀色txt书包网下载 玻璃心五月艾草txt 春药txt 盗墓秘籍txt下载 芙洛未删减txt 帅气逼人的历史txt下载 盗墓秘籍txt下载 小说在你吻我之前txt下载 超时空大帝国txt下载 苏行乐驯夫记txt 如梦令之天朝女捕快txt下载 苏行乐驯夫记txt 穿越之女配大人txt 异界养殖大户txt下载 穿越之女配大人txt 重生之星空巨蚊txt