我正在使用 Susy 框架并且非常喜欢它。但是我对增加的额外边距有一个小问题。这是我在这里尝试创建的工作示例。是什么导致 hero__about div 的孩子的额外边距,我该如何解决?
HTML
<div class="hero">
<div class="grid">
<div class="hero__image"></div>
<div class="hero__summary">
<h1 class="hero__heading"></h1>
<p class="hero__text"></p>
<div class="hero__about">
<div class="hero__about__education">
<h3></h3>
<p></p>
</div>
<div class="hero__about__interest">
<h3>Interest</h3>
<p></p>
</div>
<div class="hero__about__email">
<h3>Say Hello</h3>
<p></p>
</div>
</div>
</div>
</div>
</div>
SCSS
$susy: (
columns: 16,
global-box-sizing: border-box,
debug: (image: show),
gutters: 20px/40px,
gutter-position: split
);
.grid{
@include container(960px);
}
.hero{
.hero__image{
@include span(4 of 16);
}
.hero__summary{
@include span(12 of 16 last);
}
.hero__about__education{
@include span(12 of 12);
}
.hero__about__interest{
@include span(6 of 12);
}
.hero__about__email{
@include span(6 of 12);
}
}