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
日语二级听力软件推荐一日三餐 软件算图形面积软件开店缴费软件下雨的照相软件日语二级听力软件推荐火狐狸视频软件算图形面积软件win10有什么限制软件下载思维导图 简单上手软件怎样下载国税报税软件算图形面积软件音频视频抓取软件怎样下载国税报税软件打字风云软件下载思维导图 简单上手软件手机简单好用的制图软件船舶实用软件船舶实用软件广州地税打印发票软件下载健康档案管理录入软件船舶实用软件win10有什么限制软件下载爱普生l100 刷机软件下雨的照相软件石家庄停车软件测cpu温度哪一软件准爱普生l100 刷机软件广州地税打印发票软件下载音频视频抓取软件[纷扰如迷雾,逍遥且徐行] 入梦方醒,方觉大道维艰。从小世界意识回归醒来的大光头,抬手摸着自己脑瓜低吟着“无量天尊。” 看着身边传讯符,回忆着这次化身从婴儿到意气少年,又度过颠簸抗争的青年路程,往后便好似不记得自己有过壮年中年似的,回首时已在疑惑困顿中到了老年。 化身一生寂寥糊涂过,只留下一首连通顺都算不得的唯有悔恨的“一年一岁婴至此,一时一秒得与失。稻草压身抵千斤,默然回首如何持。神杂性善恶七情己,人和人白白入灰多。己识多实错分年,霎那蹉跎七十婴。” 又有那好似从老年到青年活着的感慨:“何所思何所愚何所怠,七十婴五十少三十明。天色长空人自老,道存事存时不存,上下空有物竞乾坤灭,事合人思万中无一寻。谁家孩儿拿那炮竹当烟花鸣一曲,潜游无欲无求后同求不在求呢。苦无一用怎是迷生。” “雷雨天,别进山” 山野小镇的少年余樊,一直谨记父亲临终前的忠告,当一个安分守己的猎户。 他从未想过小镇外面的世界是什么样子,只想守着母亲,长大以后讨房媳妇,像祖祖辈辈一样繁衍后代,生生不息。 直到有一天,小镇来几个陌生的“仙人”。 雷声起时,少年终于还是进了山,从此走上了一条注定无法停下脚步的长生路。 没什么在美丽的梦幻大陆上,分为三界,幻界,灵界和洛界,以九天之河三分大陆,三界争斗,长年不休,却又互相制衡。九天之河每百年现九天秘境,现九天之塔,九天之塔分九天,凡,普,灵,玄,皇,尊,圣,帝以及汣之天,传说闯汣天者得天下,九天之塔每一天都有不同的机遇,每一层都困难重重,每次闯关者都会获得相应的称号及奖励,然而千万年以来,还无人闯入九天之巅。幻界少主与洛界公主因九天之河倒流互相结识,因此展开两届世代之恩怨,两人之情牵动两届之争斗,然而灵界虎视眈眈,在暗中推波助澜,以收渔翁之利,离九天之塔开放还有8年时间,九天之争马上开始,看能否解决三界之乱,争夺九天之主。殊不知九天之巅,只有一把钥匙,一扇天门,上书《梦界》……预知后事如何,且看正文描述南宋后期的一些事,神化了一些人物。十六年前,他一家三口被人陷害。 父母惨死,他被医仙所救。 十六年后,他奉师父之命下山。 入赘宁家,成为豪门赘婿。 他武道称雄,医术通神。 身为赘婿,却狂放不羁! 为爱你,我甘做赘婿! 为护你,我愿举世为敌!一念天堂,一念地狱。 抛弃黑暗的过去,退役军医雷东选择做一个普通人——直到圣晶危机的爆发。 圣晶,所有人垂涎欲滴的能源,却引发了空前恐怖的生化危机,昔日繁荣的城市沦为不死族的圣地! 面对尸潮的袭击,极东古国当局却袖手旁观,背后竟然有更加恐怖的存在? 一千年,转瞬即逝。地下世界的霸主,HBY基金会一手遮天,阴影笼罩了整个极东。名为改造者的“魔族”重出江湖,基金会的堕落天使咀嚼邪恶,注视着深渊! 人类的始祖号召凡人与魔族并肩而战,对抗来自天上之人;上百位魔族的权威,诸位“罪恶圣人”兴风作浪,百圣争鸣! 雷东早在他不再平凡的那一瞬间,就卷入了风暴的中心点——只有消灭“堕落的天使”们,扭转魔族与凡人互相争斗的现状,这个世界才有救! 无辜的灵魂才有救! 谁不是那棋中人,谁不在那棋中局。 我要将那天上神灵,拽入凡间,成为那池中物、林中鸟,一切都在那所谓的方圆之内·······世人虽渺小,可是每个人都想挣脱束缚。 诸神虽伟大,可是神也总有陨落的一天。 仙侠恩怨,王朝争霸,爱恨情仇。 且看他们演绎一场不朽传奇。 刘云,三级省级家族最强者的外甥,本是一个平平无奇的校园霸主,偶然的机会踏入武道,从此走上变强之路。
幽冥镖局 疯狂小崽崽 大唐第一熊孩子 网游之绝世剑尊1 签到三年,成为全球特战之父 小爷我不是公子 全球造神:我,弑神者 修仙之我有记忆 决战王城 巴别塔陨落 一剑陨星 悚梦记 五日游戏 我是战神赘婿!你确定 我有超能力之通天炎武 八荒炼体术 修学至尊 猎国之横扫六合 崛起之桀骜不驯 全网狂黑,我逆流而上 免费 电视 应用软件 考勤管理软件 手机简单好用的制图软件 下雨的照相软件 免费 电视 应用软件 调查手机个人信息软件下载 手机简单好用的制图软件 洪恩数学下载软件 石家庄停车软件 衣服配套买软件 奇q挂qq软件 免费 奇q挂qq软件 免费 跟蘑菇街相关的软件 考勤管理软件 日语二级听力软件推荐 下雨的照相软件 5d相机软件 石家庄停车软件 金手指抢红包软件好用不 算图形面积软件 考勤管理软件 打字风云软件下载 一日三餐 软件 怎样下载国税报税软件 思维导图 简单上手软件 跟蘑菇街相关的软件 石家庄停车软件 一日三餐 软件 金手指抢红包软件好用不 石家庄停车软件 下雨的照相软件 卷烟零售软件下载 开店缴费软件 日语二级听力软件推荐 爱普生l100 刷机软件 下雨的照相软件 开店缴费软件 手机简单好用的制图软件 跟蘑菇街相关的软件 打字风云软件下载 测cpu温度哪一软件准 衣服配套买软件 免费得视频聊天软件 5d相机软件 怎样下载国税报税软件 考勤管理软件 奇q挂qq软件 免费 测cpu温度哪一软件准 跟蘑菇街相关的软件 火狐狸视频软件 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 转生后变成自动贩卖机 彼岸8光年,归来 古剑与手枪 轮回选择 营救公主吧 欧博游戏官网 皇冠登3出租 百家乐官网 欧博游戏官网 亚星管理平台 爱普生l100 刷机软件 调查手机个人信息软件下载 卷烟零售软件下载 爱普生l100 刷机软件 免费得视频聊天软件 怎样下载国税报税软件 日语二级听力软件推荐 win10有什么限制软件下载 打字风云软件下载 win10有什么限制软件下载 音频视频抓取软件 健康档案管理录入软件 测cpu温度哪一软件准 免费 电视 应用软件 下雨的照相软件 音频视频抓取软件 怎样下载国税报税软件 下雨的照相软件 奇q挂qq软件 免费 船舶实用软件 考勤管理软件 5d相机软件 思维导图 简单上手软件 免费得视频聊天软件 衣服配套买软件 免费得视频聊天软件 免费 电视 应用软件 日语二级听力软件推荐 手机录音的软件有什么区别 开店缴费软件