我在Visual Studio 2015年將HTML和CSS文件。當我要求從HTML CSS文件,它無法正確加載和重疊的H1和p標籤。CSS導航列表重疊文本
HTML:
body{
background-color: cyan;
}
ul.navbar {
list-style-type: none;
padding: 0;
margin: 0;
position: absolute;
top: 2em;
left: 1em;
width: 9em;
}
ul.navbar li {
background: white;
margin: 0.5em 0;
padding: 0.3em;
border-right: 1em solid black
}
ul.navbar a {
text-decoration: none
}
a:link {
color: blue
}
a:visited {
color: blue
}
<!DOCTYPE html>
<html>
<head>
<title>Empty</title>
\t <meta charset="utf-8" />
<link href="CSS/Style1.css" rel="stylesheet" />
</head>
<body>
<ul class="navbar">
<li><a href="Index.html">Index</a>
<li><a href="Empty.html">Empty</a>
</ul>
<h1>Welcome to Alex's Website, this is not useful at all!</h1>
<p>Text text text, bla bla bla.</p>
</body>
</html>
我不`噸知道是什麼原因造成了這個問題。