答案 0 :(得分:1)
答案 1 :(得分:0)
您可以使用负值来使用CSS边距。
#header3 {
margin: 0 0 0 0;
}
#header4 {
margin: 0 0 0 0;
}
#header5 {
margin: 0 0 0 0;
}
#header6 {
margin-top:-20px;
}

<!DOCTYPE html>
<html>
<head></head>
<body>
<p>In this example Heading 1 and Heading 2 have the default margin values.</p>
<h1 id="header1">Heading 1</h1>
<h2 id="header2">Heading 2</h2>
<p>In this one Heading 3 and Heading 4 have the margin values set to zero.</p>
<h1 id="header3">Heading 3</h1>
<h2 id="header4">Heading 4</h2>
<p>In this one Heading 6's top margin value is set to -20px .</p>
<h1 id="header5">Heading 5</h1>
<h2 id="header6">Heading 6</h2>
</body>
</html>
&#13;
答案 2 :(得分:0)
try this css file to your html page
或将te元素的边距和填充更改为0