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
自己创建网站信息安全工程师 培训班如何做网站内蒙古网站设计上海网站营销网站制作员2017 会议精神 国家信息安全钦州网站建营销品牌 舆情河北手机网站制作企业《黑暗圣经·启示录》:第一位天使吹响号角,冰雹、火与鲜血倾倒于大地,烧毁了三分之一的草木与土地; 第二位天使吹响号角,着火的群山被扒入海洋,三分之一的海水被血污染; 第三位天使吹响号角,燃烧的群星坠落与于三分之一的水源,将所有饮水之人带入冥府;第四位天使吹响号角,毁灭了三分之一的日、月、星辰,从世间夺去了三分之一的先明;第五位天使吹响号角,陨星在大地上撕开无底的深渊,让三分之一的人类挣扎守生与死的边缘;第六位天使吹响号角,心弦波封印于幼发拉低河的国王挣脱锁链,他们分别掌管政治、经济、军事和宗数,遵从神的旨意,于此年、此园、此时东灭全人类的三分之一; 当第七位天使最终展齐漆黑的羽翼,吹响 “审判” 的号角,统治宇宙的大权已经属于我们的主这位作者很懒,什么都没有留下完结本是先帝血脉,然遭逢巨变,只得流落凡间,颠沛流离,沦落红尘,招人欺辱,命运多舛,历经生活困苦,然而时光荏苒,白驹过隙,逐渐成人的小混混,难敌红尘诱惑,真所谓窈窕淑女君子好逑,何况乎一个人人叱之以鼻的小痞子,更是整日做着赖蛤蟆想吃天鹅肉的美梦,戏剧性的是美女爱痞子,佳人何其多,为了心中执念,痞子也可憾苍天……他的脚步很重,沾满了这个朝代的遗风。像一个赶时间的人,从唐到宋。 故事发生在蓝星历2400年,在这里你将见到现代科技和异能的碰撞,因为一个意外蓝星开始出现大量遗址,主角历晓程也在一场意外中觉醒获得了一个气人就能变强的系统,这里你会见证朋友背叛,亲情的失去,在这里是你会看到一个‘吃人的世界’本书励志成为一个刀片场,欢迎各位读者给我寄刀片。“郑舰长,全球90%都已经被维纳星人占领了,大势已去,我们赶紧逃吧!”李强哭泣着说。郑宇奇露出惊讶的表情回答道:“什么?那么快,我们还剩多少人?”李强回答:“我们地球护卫队剩下不到2万人了!咱们快点走吧,飞出地球,寻找… 世纪之末, 仙路湮灭,前路断绝,动乱时代,宇宙重开,少年叶天重生于异域,从此踏上仙武大道,悟五行,领阴阳,掌握极致力量。堤岸横空,生灵争渡,不详与诡异肆虐。 少年的背后是血与乱,是生灵的悲歌,少年的探寻的是万灵之希望。彳亍前行,万古寂然,永远在路上。一日随君闯四海-半生天涯夫为家! 万界万物异种同源!生死对立-阴阳共存! 有生命的地方就会有争斗,在时代进步与更迭下,没有所谓的与世无争-世外桃源!想无争就要站到万物顶端-与天同齐!这样才能与世不争享受桃源生活! 生命不息,杀戮不止! 对自己最好的保护就是进攻,不断登临巅峰-超脱世间大道-游历宇宙星海! 一代人帝就此出世! 让我们一起随人帝沐浴腥风血雨-经历人生沉浮-最终御天下万物万道-掌宇宙阴阳乾坤!凡尘之中存在着不凡之事,光怪陆离早已对地球求知若渴,天选之人们该如何应对……
数据库网络安全措施 供应商营销 网站设计模板免费建站 社会化 口碑营销 公司 企网络安全措施gbt 20984-2007 信息安全技术 信息安全风险评估规范 微信公众号的营销活动 网络营销的优秀案例 html5简易网站建设 信息安全 框架 网络信息安全软件 微营销有什么特点 从服务器复制文本粘贴到本机 信息安全 能查到么,-1 网络营销案例介绍 网络安全从业者证书 淘宝直播的营销手段 微信公众号的营销活动 点内营销 绵阳做手机网站 徐州网站 搜索引擎六大网络营销 全网营销顾问 互联网网络安全态势 网络安全的信息 网络信息安全理论与技术 五种网络营销方法 上海信息安全管理中心地址,-1 信息安全培训服务,-1 内蒙古网站设计 魔兽网络安全 美橙网站维护 微博营销的效果预期 广东省信息安全协调工作系统 国防科技大学信息安全 二级域名网站价格 南通网站建 信息安全治理成熟度模型 网络营销的十种方式 国家网络安全认证证书 上海网站营销 中英文网站设计手机设计培训网站建设 单位网络安全宣传培训情况 互联网公司营销方案 营销品牌 舆情 对于网络信息安全不仅个人要防范 信息安全所存在的危害 网络安全工程学院 淘宝直播的营销手段 汕尾网站建设 奥巴马营销 建立网站备案需要什么资料 网站设计模板免费建站 网络信息安全基础常识 网络营销网站推广 网络营销的优秀案例 建网站代理商 关注网络安全 点内营销 网络安全协议有哪些? 马鞍山网站制作 点内营销 建立网站备案需要什么资料 sem活动营销方案 南通网站建 个人网站主页设计 河北手机网站制作企业 注册信息安全员 cism 网站改版方案 网络营销如何收益 爱民网站制作 滕州网站优化 全国信息网络安全协会联盟 筑巢网站 农业网站建设 华为信息安全心得体会 x网站免费 营销型网站定制 .网站建设的目标 网络培训的网站建设 惠普键盘信息安全隐患 网络安全国际认证 263网站建设怎么样 信息安全 框架 网络信息安全理论与技术 网络安全的信息 关注网络安全 网站改版方案 贵州省网络与信息安全测评认证中心招聘 网络信息安全理论与技术 网络安全工作动态 全网市场营销有限公司招聘信息系统 互联网网络安全态势 网络安全工作动态 上海做网站的 网络安全技术服务公司 济南营销 北京互联网营销培训 网络营销的优秀案例 做网站的公司 网络营销工具分为沟通类和什么 企网络安全措施gbt 20984-2007 信息安全技术 信息安全风险评估规范 武汉信息安全企业 网络与信息安全 cia,-1 外贸网站设计 怎么微博营销推广 信息安全的攻击有哪些 绵阳做手机网站 sem活动营销方案 江苏省信息网络安全协会 服装营销网 网络安全售后服务方案 网站制作员 美橙网站维护 信息安全服务认证资质 网站域名注册 聊城市网站制作 视频营销优缺点 全网霸屏营销系统 信息安全技术标准 互联网事件营销ppt 钦州网站建 德阳网站建设 爱民网站制作 网站的访问量 德阳网站建设 网站域名注册 网络信息安全软件 网络安全新闻视频下载 上海做网站的 全网营销网络 如何做网站 2017 会议精神 国家信息安全 北京网络营销师讲师 2013中国网络安全大会 成都活动网络营销网络营销案例论文 网络安全协议有哪些? 信息安全治理成熟度模型 淮南网站建设 网络安全学习路线 网络安全技术服务公司 网络营销的十种方式 商务类网站 北京海淀区网站开发 网络信息安全基础常识 微博营销案例 网络安全狗招聘