14_CSS ID選取器
14_CSS ID選取器
css file
#red {
color: red;
}
#green {
color: green;
}
#navy {
color: navy;
}
#blue {
color: blue;
}
|
html file
<html>
<head>
<title>網頁標題</title>
<linkrel="stylesheet"type="text/css"href="01.css">
</head>
<body>
You ever have that feeling where you're not sure if
you're awake or still dreaming?
<divid="red">Free your mind.</div>
<spanid="green">Believe the unbelievable.</span>
<blockquoteid="navy">There is no spoon.</blockquote>
<pid="blue">Because I choose to.</p>
</body>
</html>
|