Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 body 元素上有一个 8px 的边距,我不想在那里,因为它使导航看起来有点奇怪。我可以将 margin-top 设置为 0 像素,或者在导航上设置负 8 px 的边距,这样更好,为什么 Susy 在模板中有这个?
这实际上与 Susy 一点关系都没有。Susy 不会对 body 应用任何 8px 的边距,但大多数浏览器默认会这样做。您可以使用重置(“ @import "compass/reset";”是一种方式),或者只是手动覆盖主体上的边距设置。我不会使用负边距来修复它,除非你真的想要其他地方的 8px 边距。
@import "compass/reset";