[英]Foundation 6 full width row
In foundation 6 a full width row is normally defined as 12 columns, but the code below have equal output, 在基础6中,通常将全宽行定义为12列,但是以下代码具有相同的输出,
Option #1: 选项1:
<div class="row">
<div class="large-6 columns">
<h1>Welcome to Foundation1</h1>
</div>
<div class="large-6 columns">
</div>
</div>
Option #2: 选项2:
<div class="row">
<div class="large-6 columns">
<h1>Welcome to Foundation1</h1>
</div>
</div>
Option #3: 选项3:
<div class="row">
<div class="large-12 columns">
<h1>Welcome to Foundation1</h1>
</div>
They above options do all the same thing but I see option #3 is mostly what is done by web developers. 它们上面的选项都做同样的事情,但是我看到选项3主要是由Web开发人员完成的。 Are there any advantage?
有什么优势吗?
in foundation 6 you can usa a "row expanded" to use 100% os screen 在Foundation 6中,您可以使用“行扩展”来使用100%的OS屏幕
<div class="row expanded">
<div class="large-12 columns">
content
</div>
</div>
to make a single row width 12 columns in foundation 6 you can use 使基础6中的单行宽度为12列,您可以使用
<div class="row column">
my content
</div>
its is equal to first example (without expanded) 它等于第一个示例(未扩展)
You already said: 您已经说过:
a full width row is normally defined as 12 columns
全宽行通常定义为12列
So .large-6
defines a column with 50% width, .large-12
will have 100%. 因此
.large-6
定义了50%宽度的列, .large-12
将具有100%的宽度。 Give the cells backgrounds and you'll see. 给单元格背景,您将看到。 Here is a codepen .
这是一个codepen 。
This is important for line wrapping, so that might be the reason for most developers to go for the full width. 这对于换行很重要,因此这可能是大多数开发人员选择完整宽度的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.