gpt4 book ai didi

html - 我的网站顶部有一个空白

转载 作者:太空宇宙 更新时间:2023-11-03 21:10:42 27 4
gpt4 key购买 nike

Here is the problem Here is the css好的,所以我想创建一个简单的投资组合网站,我是 HTML 和 CSS 的新手。

    <body>

<header>

<h1>Sai Daniels</h1>

</header>

</body>

那是我的 HTML 和我的 CSS

   @import
url('https://fonts.googleapis.com/css?family=Raleway:300,400,700,900');
body{
font-family: "Raleway";
padding: 0;
margin: 0;
}

/** HEADER **/
header{

color: #00ff6c;
text-align: center;
background-color: #232323;
height: 1000px;

}

即使在其他问题上,答案也无济于事

我注意到如果我这样做可以解决问题

*{
margin:0;
padding:0;
}

问题是我是唯一一个必须这样做的人,我被告知这样做会导致问题。

最佳答案

在CSS中使用它

h1 {
margin-top: 0;
}

关于html - 我的网站顶部有一个空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47234143/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com