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.
没有正确的反馈,就没有正确的互动。超级App的快速发展,其实已经成为内容创业非常好的土壤。
坤鹏论认为,人有七情六欲,少了一个都会失衡不完整,就和那句名言所说的一样,人生就像心电图,一帆风顺就挂了,情绪也一样,有起有伏,敢爱敢恨,才算心理健康,否则不是傻了就是疯了! 只有品尝过痛苦,才会知道幸福的甘甜! 从今天开始,别再执念幸福,可能幸福就会在明天的灯火阑珊处! 最后的最后,再补充一句忠告:现如今,你可以做的让你未来肯定能幸福的事情,就是用尽你的洪荒之力把手里的货币换成优质资产! 凡是那些现在高喊90后就别买京沪深的XX了的人儿,要不是不懂经济,要不就是明知故骗,哗众.......取宠! 绝对是又一个说自己卖房创业,其实去香港炒股赚了又回北京买房的罗振宇! 坤鹏论由三位互联网和媒体老兵封立鹏、滕大鹏、江礼坤组合而成,坤鹏论又多了位新成员:廖炜。但印度政府明知山有虎偏向虎山行,祭出了这个大力奇招。
| 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 |
今日头条则通过和芒果TV等平台合作加强了这块内容。
<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.
如今域名中国还在做域名生意,但开始涉足做知识产权交易平台外患来不及解决,内忧更严重:高薪聘请的CEO黎景辉与创始人丁磊之间多次爆发争执与矛盾,高层内部暗潮涌动。
三板“僵尸股”数量惊人。 另外,碎片化学习还催生了另外两种流行的学习模式,一是跨界王式学习,比如:文科生敢于充当理工科专家,大谈人工智能的技术实现,以跨界为荣,嘲笑学术界的保守。
目前微信有6.5亿的活跃用户,而且很重要一点是支付环节已经打通,在微信直接购买内容变为可能。” 近年来,这所学校飞出来的创业者络绎不绝,总编比比皆是,网易是互联网创业圈内“黄埔军校”的说法也渐渐流传开来…… 2000年与2001年,是网易最艰难的岁月。
| 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 |