我正在将布局从 Susy 1 转换为 Susy 2.0,并且有些事情的工作方式与预期不同。我在这里做错了吗?我希望容器跨越页面的宽度,并在页面中间有一列宽度的一半。在该列的内部,3 个等距的列(红色、白色和蓝色)。我不确定 css 是如何编译的,因为它在屏幕截图中。
header {
.fullheight {
@include backImage('../images/img_hero_brightspace-homepage.png');
@include container(100%);
.hgroup {
padding: 150px 0;
text-align: center;
h3{
@include span(8);
display: block;
font-weight: $light;
}
} //hgroup
section{
@include container;
@include span(6 at 3 of 12);
.serviceBox{
@include span(2 of 6);
width:100%;
height:40px;
background-color: white;
}//serviceBox
.volunteerBox{
@include span(2 of 6);
width:100%;
height:40px;
background-color: blue;
}//volunteerBox
.partnerBox{
@include span(2 of 6);
width:100%;
height:40px;
background-color: red;
}//partnerBox
}
} //fullheight
} //header
我的 Susy 模板
$susy: (
columns: 12,
container: 60em,
gutters: 1/4,
gutter-position: inside
);
我的 HTML
<article class="fullheight">
<div class="hgroup">
<h3>Providing help to residents of Greater Cincinnati when challenges invade their lives</h3>
</div>
<section>
<div class="serviceBox">
</div>
<div class="volunteerBox">
</div>
<div class="partnerBox">
</div>
</section>
</article>