我是HTML和CSS的初学者。 所以,现在我遇到了麻烦。 text-decoration: none;
不适合我。 你们能帮我找到一个解决方案吗?HTML/CSS - 文本修饰不起作用
* {
margin: 0px;
padding: 0px;
}
#Header {
width: auto;
height: 70px;
background-color: #647551;
margin-left: 0px;
}
#Header ul li {
text-decoration: none;
color: #645789;
float: left;
margin-left: 30px;
}
<!DOCTYPE html>
<html>
<head>
<link href="css/Main.css" type="text/css" rel="stylesheet" />
<meta charset="utf-8">
<title>Talkody - Gilles </title>
</head>
<body>
<div id="Header">
<ul>
<li>Home</li>
<li>About</li>
<li>Portfolio</li>
<li>Contact</li>
</ul>
</div>
<p>Dit is een test website waar ik alles uittest, hierna ga ik er verder op in</p>
<img source="images/Logo/TalkodyLogo.ai" />
</body>
</html>
它没有任何的装饰了。 – bxorcloud
'li'默认没有文字装饰。检查你的CSS的其余部分。 – Turnip
不是吗?我在Chrome中运行它,并在每个单词的开头看到“子弹”。 – Gilles