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.
可是如此神奇的产品,在国家食品药品监督管理总局网站上却查不到任何相关信息。 在内容产业天花板有限的情况下,大号做横向扩展,把流量拆分给一些垂直小号,通过横向延伸的方式扶持“小号”,或许是2017年短视频创业一股不可忽视的力量。
<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.
经纬中国合伙人左凌烨曾在2016公开演讲中提到,企业服务有个很有意思的统计数据:全球IT支出的90%来自于财富前2000强,9%来自于2000到20000强,剩下的企业占1%。 白山位于北京的办公区内,健身房、洗衣房、胶囊卧室等配套设施齐全,每周还有医师上门看诊,白山经常会把一进门左手边第一个办公区留给医师用,方便员工问诊。
1、在微信搜索框中输入微信指数,然后选择搜一搜微信指数(如图) 2、点击出现的微信指数图标后,会弹了相关界面(如图) 3、根据你的需求搜索某个键词,就会得出相关指数情况(如图) 如图所示,微信指数可以反应出某个关键词7日、30日、90日的流行度的数值,通过指数曲线的情况,我们大致可以判断出某个‘搜索词’的流行趋势。因为相比其他人,他们对自己更感兴趣。
| 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.
彻底关闭或准关闭项目多集中在电子商务、本地生活、社交、企业服务等领域;北上广浙四地成为重灾区,“死亡”项目中处于A轮及A轮前早期的比率高达98.60%。 合理的广告位往往能使运营的效果达到事半工倍。
新媒体创业沙龙专场 热话题:内容付费 吴晓鹏(华尔街见闻):内容付费在财经信息领域,有两种形态。 技术大牛的聚集,这是一个艰难爬坡的过程。
取消新闻源真意味着什么?你还是被套路了 接下来换个维度说说。 公司成立后无正当理由超过6个月未开业,或者开业后停止经营6个月以上且未进行零申报的。
| 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 |