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.
没过多久厨师又跑回家过年了,她俩就自己下厨炒菜。加载动效让用户实时地明白当前的状态,并且快速的理解,拥有预期,甚至作出反应。
<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.
如果想拿到融资,产品所蕴含的深度思考、可执行性及想象中的未来则十分重要。” 留白 我们常说的留白,或者负空间,是设计师没有放置设计元素的空白区域。
10年前俏江南还能以笔筒沙拉、江石滚肥牛等菜式吸引顾客,但10年后还是只有这些菜式,而且质量也直线下降,价格又贵,怎么留得住客户? 在知乎上,“俏江南是如何衰落”共有134个回答,每一个回答都直指俏江南的菜式并不可口、服务不够周到。 从6岁开始,王功权就对古诗词非常着迷,家里的四书五经、诸子百家、唐诗宋词都被他翻遍了,小小年纪就对“执手相看泪眼,竟无语凝咽”的婉约派非常向往。
| 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.
半年以后,王公权被一位朋友拉去硅谷参加一个5000多人的互联网展示会,他一下子被迷住了。并且汽车是主动跑去接乘客而不是让乘客跑去找车。
“但是当我提起期望薪资时,CTO犹豫了一下,说这个薪资可以给,但是需要CTO本人以人格向CEO作担保,才能开出这个薪资请他来。如果卖的不是知识而是汉堡、衣服、化妆品,卖假货是要负法律责任的,但是光天化日之下把这些假知识拿出来标价卖,好像没什么人管,这让人很遗憾。
2011年6月7日,鼎晖创投董事长吴尚志宣布同意王功权因个人原因辞去鼎晖创投现任职务,并于2012年1月1日正式离职。几个合伙人清算了资产、各回各家。
| 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 |