<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
因此,在开发我的网站时,我遇到了一个小问题。 这是我制作另一个部分后出现的内容。
我的CSS: Pastebin Link
HTML: Pastebin Link
最佳答案
看来您的问题来自于讨厌的 <h1>
元素。默认情况下,它们有边距,因此您看到的白线是 <h1>
的 margin 。别担心,您可以通过在 CSS 中将其边距设置为 0 来将其删除。
我喜欢使用 *
默认情况下声明我想要的样式。
这是一个例子。
* {
padding: 0;
margin: 0;
}
这样一切都没有填充或边距!
希望这对您有所帮助。
关于css - 奇怪的清除栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39381386/