gpt4 book ai didi

Css - 摆脱对象之间烦人的空间

转载 作者:行者123 更新时间:2023-11-28 15:00:45 24 4
gpt4 key购买 nike

<分区>

我是网页设计的新手,我想摆脱两个之间令人讨厌的空间 <div>使用 CSS: Annoying space between (in the red circle)

我正在使用这段代码:

HTML:

<html>
<head>
<link rel="stylesheet" href="../css/index.css">
<title> FalquOS: Index </title>
</head>
<body>
<div id="Section1">
<p> Section 01 </p>
</div>
<div id="Section2">
<p> Section 02 </p>
</div>
<div id="Section3">
<p> Section 03 </p>
</div>
<script src="../js/index.js"></script>
</body>

和 CSS:

   #Section1 {
width: 100%;
height: 500px;
background: #ff7f29;
border-radius: 10px 10px 0px 0px;
}

#Section2 {
width: 100%;
height: 500px;
background: #f3dc4f;
}

#Section3 {
width: 100%;
height: 500px;
background: #f34f4f;
border-radius: 0px 0px 10px 10px;
}
p {
text-align: center;
font-size: 25px;
color: white;
position: relative;
top: 200px;
font-family: monospace;
}

我一直在尝试一些可能有帮助的东西,比如 margin 但那不起作用 :(

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