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
奥运邮票邮票邮票收藏香港回归纪念邮票中国邮票纪念邮票邮票行情世界上第一枚邮票邮票网邮票交易所我本是一个很普通的心理医生,在城市的各个角落里为人们治疗心理疾病,当中有罪犯,有学生,有明星,有作家,当然他们也可以是一个人。一次偶然的机会梦中醒来,我竟发现我的身旁多了一块儿神奇的怀表,只要一旦摁下它,对面的内心就如同一本书一样展现在我的面前,人性的腐败与光辉,扭曲的想法与变态的心理,是给予堕落的天使救赎?还是一同堕入黑暗?欢迎和我一起进入影子的世界。我本无意争锋,却被迫推上高位,在血与火中,一步步走到天的举世瞩目的高度,那么就剩下天了......来自他的故事传奇。资深外科医生林陨,莫名穿越到九州大陆的玄月宗,成为了最被人看不起的一名上门赘婿,同时也拥有了一位美若天仙的宗主妻子。 幸得药神系统,无限速成神品丹药,修得上古肉身成圣之法。从此扭转悲惨命运,脱胎换骨! 阴谋毒害、冷眼嘲笑……一切都将成为过去。 纵横万古帝之道,我自剑来谁言轻? 哪怕是当赘婿,他也要当一名最强最狠的赘婿!亦木墟历练归来时见到家族覆灭,发誓欲要血刃仇敌,报其家恨。 闯秘境,夺至宝,守边疆,战万族。 沧海一粟,修行千秋,蝼蚁尚且贪命,诸天生灵皆在争渡。 一颗黑球可炸山镇海,一杆长枪可斩万千神明。 是非对错唯有强者定义,弱者只配臣服。 武道九重,上为天地境。 当末法时代结束,修行元气重归上古。 整个修士界,皆因亦木墟的一颗轰天雷,即将暴走...不知道什么时候起这个世界变了,出现了很多拥有能力的异能者,大致分为五类,具象系,法则系,变化系,控制系,特殊系,也不知道是我们改变了这个世界,还是这个世界在改变我们…… 陈彬为了完成父母夙愿,考入警校的刑侦专业。 可进入警局实习的前一天晚开始噩梦。 即将发生的凶案细节,全部都会清晰显现于梦中。 跟踪案件,抽丝剥茧,层层拨开,最后竟是一个巨大的阴谋。自大爆炸发生那天起人类的文明遭到了毁灭性的打击,突然出现的一种叫噬的液体生物,无声侵入人体,操控他们的行动和思维,仅仅是几个月的时间人类众多的城市都成为噬的巢穴。这是新的世界。也是我们儿时向往的乌托邦。当梦想和现实碰撞该擦出火花,还是被黑夜同化故事讲述钟馗后裔钟北含冤而亡化作厉鬼,因为魔神祖先背景成为架空时代大塘的一名“阴司判官”。因家传宝玉与一千年后的子孙主角钟南跨越时空产生联系,能够被钟南召唤上身,成为钟南的“金手指”,从此一人一鬼的生存轨迹彼此交织在了一起。钟南、钟北以古今两代的宝玉本体为媒介,钟南帮助钟北在大塘斩妖除鬼、拨正乾坤。钟北帮助钟南在现代社会成就事业、匡扶正义。从此鬼成了英雄,人成了枭雄。古今两世看主角如此翻天覆地……乾坤天地,层次分明,修士修行即为修法的过程,修士修法,即为修武法、道法、命法之层次。普通少年莫恒从修武法开始,一路披荆斩棘,高歌猛进,闯荡乾坤天地。
中国邮票价格表 奥运邮票 生肖邮票 邮票交易所 香港回归纪念邮票 邮票互动网 欧美群迅雷下载 南京文交所钱币邮票交易中心 世界上第一枚邮票 文革邮票 上海邮票网 民居邮票 猴年邮票 文革邮票 女幽灵 百度网盘下载 迅雷下载 第三轮生肖邮票 文革邮票 邮票吧 邮票图片 中国邮票 民居邮票 邮票收藏价格表 第三轮生肖邮票 奥运邮票 邮票网 鸡年邮票 生肖邮票 邮票行情 邮票收藏价格表 纪念邮票 龙邮票 龙邮票 第三轮生肖邮票 生肖邮票 邮票收藏价格表 奥运邮票 邮票互动网 奥运邮票 邮票 龙邮票 新奥特列传欧布捷德赛罗魔女图鉴穿越之极限奇兵新世界灵士生存指南大明少年志天位之龙帘幕之下神将:铁人军玄虎三国:人在曹营,开局赤壁我的老师吴泽英超级吐槽系统我手上有龙印记道爷请留步德拉西翁:迪迦的继承者盗墓:挖坟掘墓窥阴司夺魂追凶刀剑天武大明:我的皇孙太强了英雄联盟的奇迹时代培新之翼亚星游戏官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星游戏官网 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 皇冠登3出租 薇-電 132-②⑧⑧⑧-8433 皇冠登3出租 薇-電 132-②⑧⑧⑧-8433 【薇-電1322 8888 433】皇冠登3出租 皇冠登3出租 薇-電 132-②⑧⑧⑧-8433 【薇-電13228888433】皇冠登3出租 快链加速器 - 上海曲德曲网络科技有限公司 快链下载 - 上海曲德曲网络科技有限公司 快连VPN - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快链下载 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快链下载 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快链加速器 - 上海曲德曲网络科技有限公司 快连VPN - 上海曲德曲网络科技有限公司