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.
<div class="row">
<div class="span4">...</div>
<div class="span4 offset4">...</div>
</div>
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.
.span3 columns should be placed within a .span6.
<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>
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.
2013年底到2014年年底,小米空白的历史中也留了下三大未解之谜。 这种情况下通常会被工商部门列入“经营异常名录”。
<div class="row-fluid">
<div class="span4">...</div>
<div class="span8">...</div>
</div>
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.
<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>
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>
<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>
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.
30岁离开新浪后创业5年的张扬,在自己合伙的游戏公司因资金链断裂而倒闭后,决定不再创业。一类是具有稀缺感的体验产品,另一类是有时令感的优质商品。
回湖南总能感受很多和上海不一样的乐趣,嗦一口湖南米粉,吃地道的湘菜,听纯粹的湘音,真的韵味! 2、这几年253在企业通讯领域发展得很快,一些具体的数字因为某些原因不方便透漏,但可以给大家说几个简单的数字,2016年我们的营收增长了4倍,短信验证码发送增长了6倍,平台注册的创业者和开发者超过11万。如果你还不理解留白的意义,不妨看看下面的实例: 杂乱的界面没有吸引力,碰到这样的情况,用户甚至看都不会看。
| 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 |
员工说能够平躺、符合人体工学什么的。
<meta name="viewport" content="width=device-width, initial-scale=1.0">
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:
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) { ... }
For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.
商务人士只要知道到达下一个地点大概需要多长时间,以此来安排行程更为简单方便。 5.3.2游戏模式和人数 有没有人想过,为什么端游MOBA类游戏是5V5,不是3V3或者4V4,又有没有人想过,为什么到了手机端,依然是5V5?而《王者荣耀》为什么没有放弃《英雄联盟》里并不存在冒险模式? 虽然《王者荣耀》看似完全照抄《英雄联盟》的,但我们也要分析清楚,为什么是5V5而不是3V3,为什么没有什么存在感的冒险模式在《王者荣耀》里却一直存在。
这些保健品的销售将为公司带来巨额的销售利润。 社交媒体 社交媒体网站,如Twitter,Instagram和Facebook变得越来越吸引流量,在每个页面审计中包含你的社交媒体引流统计是个不错的主意。
永安行是从2016年下半年开始涉足共享单车业务的,并已在北京、上海、成都、长沙和福州等多个一二线城市,投放了5万量无桩共享单车。 3月21日,摩拜单车宣布,正式在新加坡投入运营,开始海外战略。
| Class | Phones 480px and below | Tablets 767px and below | Desktops 768px and above |
|---|---|---|---|
.visible-phone |
Visible | Hidden | Hidden |
.visible-tablet |
Hidden | Visible | Hidden |
.visible-desktop |
Hidden | Hidden | Visible |
.hidden-phone |
Hidden | Visible | Visible |
.hidden-tablet |
Visible | Hidden | Visible |
.hidden-desktop |
Visible | Visible | Hidden |