我意识到这可能是重复的,但即使查看所有其他帖子,我似乎无法弄明白。我的CSS表格:
h2 {
text-align:center;
color:black;
font-family : Verdana, Arial, Tahoma, Calibri, sans-serif;
}
h3 {
text-align:center;
color:black;
font-weight: bold;
font-family : Verdana, Arial, Impact, Tahoma, sans-serif;
}
p {
font-family: Georgia, Times New Roman, Century, serif;
color:blue;
text-align:left;
font-size: 12px;
}
td {
font-family: Bookman Old Style, Cooper Black, Garamond, Goudy Old Style, serif;
color: green;
text-align: left;
font-size: 12px;
}
a:link {
color: red;
text-decoration: "none";
}
a:visited {
color: teal;
text-decoration: "none"
}
a:active {
color: yellow;
text-decoration: "none"
}
a:hover {
color: orange;
font-weight: underline;
}
我的HTML页面:
<html>
<head>
<meta charset="UTF-8">
<title>TITLE GOES HERE</title>
<link rel=“stylesheet” type=“text/css” href=“base.css”>
<style>
body {
background-color: #ccffff;
font-family: Geneva, Arial, Halvetica, sans-serif;
}
table, td {
border:1px solid black;
}
table {
width:100%;
}
th {
height: 40px;
background-color: #ffffcc;
}
</style>
</head>
该链接不在<style>
标记中,而在head
标记之间,所以不应该有效吗?即使在删除style
标记后也没有任何反应。