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
邮件群发 邮件营销成都网站信息安全相关法规单页面网站开发国家有网络安全制度吗网络营销工具种类深圳做自适应网站设计网络营销评价方法有哪些方法有哪些内容搜素引擎营销什么是搜索引擎营销策划高级信息安全顾问工作职责,-1信息安全违规等级网络安全例子签约 武汉新艺博彩绘 网站建设项目_武汉网站建设公司首选纵横互联ctf 信息安全 技术讲解传统市场的营销活动方案保定互动营销 云网客海尔网络营销策略分析品牌网站设计公司网络安全与攻防专业网络安全事件应急响应时间要求信息安全相关法规网站需求网络营销解决方案营销班考网络安全什么证书近年国内网络安全事件品牌营销软文案例教育网站建设策划书关于的网络营销文章网络营销环境的内容 流年莫贪风雨,愿与君长久。红楼翻去云中鹤,诗八行,空作许。 小子带剑登楼,瘦马河北骨。梨园跌进梁上蛛,信两封,未拆取。 天星新年,人类在诸多现实问题的困扰下,将重心放在恒裁公司开发的新款同名虚拟网游——《恒裁》。随着游戏剧情不断推进,这片被高级人工智能铺满的钢铁城市渐渐睁开猩红的双眼。 失去记忆的林青平又背负着怎样的过往?沉重的代价、痛苦的挣扎,扑朔离迷的过往,看不见光的未来…… 秋风不问归途,鸿雁南飞。一曲离歌轻声叹,梦里往事走马观灯,花开花落,一梦将年。 黄昏的太阳无力的挂着,照的这人世间晃晃悠悠。 这世界本是一场游戏。林青平与他的朋友们,将会是猎物?还是猎人? 我叫白凌云,当我睁开眼时,我发现我竟然穿越了。 这里有武者,有魔法,有修仙,有忍术,有异能…… 在这里,武者是最卑微的存在,武已经没落了…… 而我,刚穿越就面临一个很严重的问题…… 谁能给我一碗馄饨面呀!我都快饿死了!一个从地球重生在异界大陆的小人物,获得了一个神界宗派神级系统,后来才知道,系统其实是一个先天神器的器灵,意外从神界通过空间乱流漂流到地球,砸中地球司马轩带着他穿越到天印大陆。、收神体弟子,降妖除魔。从修真界,到仙界,再到神界、从此开启了一个不一样的人生。石庆猛,原名石猛。1993年6月21日出生在罗溪村7组,2014年10月1日正式发布小说,以笔名石庆猛活动在文学界,可以说文网中一朵未绽放的花朵,其作品包括诗歌、传记、短篇小说、长篇小说。叶帆重生在元宇宙刚刚开始的时候。 没有人比他更加清楚元宇宙到底是一个什么样的东西。 这是一个地球文明与高级文明联网的时代。 这是一个地球变异、人类接受各种全新科技、基因突变、生命进化的时代。 这是一个充满了机遇与挑战的时代。 前世的叶帆只能仰望强者,在卑微中走向死亡。 这一世,叶帆要向生命的终极进化迈进!暗恋多年的感情始终无果,挡在我面前的是生活和现实。 现实和生活是沉重的枷锁,牢牢困住我的心中的理想。 纵使我奋不顾身,也只能头破血流。 古怪女孩出现在我的生活中,为我平淡而又灰暗的生活增添了一抹光彩,从此她成为了我生命的光。 掩藏在表面之下的,是人性中的恶。  重生综武世,成为天下唾弃的慕容复,不甘心一世无能。   决定先下手为强。   开局迎娶王语嫣,不想大婚当夜意外激活选择系统。   从此神功、内力、女人,统统不缺。   万年内力,无相神功、打狗棍法。   左手搂黄蓉,又手抱芷若。   婠婠为我暖床,妃暄爱我如命。   这一世我兼爱众生!   这一世我掌灭万派!   这一世我文成武德!   此生我为不朽皇者,永生不灭!   皆因我是慕..容..复! 神明要找接班人?全人类中的佼佼者展开无尽的纷争,只为成神!齐玉一拳一个小朋友,笑傲世界之巅! 嗯?就是你欺负我女朋友的?西内! 道德绑架我?对不起,我没有道德!西内! 敢占我便宜?还讹钱!西内! 老爸?西……噗啊!出现了,jojo中奇怪的出血量!修仙和历史共存,里面涉及的历史典故和俗语比较多。上古大陆,一位拥有先天全体的少年,因为一次意外,引得黑珠入体,从而导致元力全失,至此他失去了所有光彩,族人的陷害让他认识了师尊,在一个分身的教导下,少年披荆斩棘,过五关斩六将,一步步成为真正的强者...... 为了家族命运,少年踏上了独自修炼的征程;为了亲人,他被迫选择了自己不爱的人;为了爱人,他忍受了无数年的自责。 从一个小小的战士,逐步成长为天元大陆至高无上的古神,而最终,为了整个天元大陆,他却付出了所有......
内部列表email营销关键 网络营销解决方案 网络营销评价方法有哪些方法有哪些内容 网络营销学习路线图 湖南+网站建设 上海信息安全师 昆山设计网站的公司 顺德门户网站建设公司 开展网络安全宣传 近年国内网络安全事件 第四网络安全周 健身器械网站建设案例 营销体系的内容 网络安全法 检查 网络安全法 检查 中国信息安全产业联盟 品牌营销软文案例 互联网营销的好处坏处 开展网络安全宣传 网络营销专员工作要求 2017年网站建设公司 网络安全智能防护系统 信息安全证书 网站制作好在百度里可以搜到吗 信息安全目录,-1 企业网络安全解决方案 中国网络安全产业大会 网站重复 第四网络安全周 4a平台从账号是指网络安全管控平台账号还是应用系统账号 西安网络营销 网络安全信息保护 国际信息安全现状 屈臣氏营销 武汉网站制作公司排名衡水做网站推广的公司 搜素引擎营销 信息技术 网络安全 考网络安全什么证书 网站重复 网络安全《》