在我脑子里,我想用“你的形象比我们更重要。”有更重要的重点。标题生成
我也想,要带下划线和阴影,以配合红色背景(白色阴影)。这也加重我辩论是否应该闪烁或淡出。
出于某种原因,我的CSS不工作就可以了。 HTML代码:
<!-- This is a HTML Document-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="dld.css">
<title>Dave's Logo Designs</title>
</head>
<header>
<div id="header">
<h1>Your Image is <em>More Important</em> Than Ours</h1>
</div>
</header>
<body>
<h1>Welcome to the official site of Dave's Logo Designs<h1>
</body>
</html>
CSS到目前为止:
header {
width: 100%;
height: 200px;
}
header:h1 {
color: red;
text-shadow: 0px 2px 2px white;
font-size: 25px;
font-family: impact;
}
header:em {
color: white;
font-weight: bold;
text-decoration: underline;
font-size: 30px;
font-family: impact;
}
没有的工作。可能在我的结局上有些愚蠢。我在这里先向您的帮助表示感谢。
你应该把''你''标签内。 –
选择器也应该是'的#header> h1'和'的#header em'。 – Gavin
非常感谢。我在飞行中学习。希望我能理清这一点。 –