0
我的網頁沒有鏈接樣式表。不知道這是怎麼回事,這是我第一次使用樣式表。需要了解我是否錯過了一些東西。如果能夠幫助理解我的錯誤來自哪裏,我願意發送整個文檔。我有。路徑都在根文件夾中。不知道我錯過了什麼。 HELPPP!遲到的老師問題:鏈接樣式表
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>REID RULES IT</title>
<meta charset="utf-8" />
</link rel="stylesheet" href="style.css" type="text/css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="body">
....
..
.
</body>
</html>
CSS
body {
background-image: url('img/logo.jpg');
color:#000305;
font-size: 87.5% /* base font size is 14px */
font-family: Arial, 'Lucida Sanas Unicode';
line-height: 1.5;
text-align: left;
}
a {
text-decoration: none;
}
a:link, a:visited {
}
a:hover, a:active {
}
.body {
margin: 0 auto;
width: 70%;
clear:both;
}
.mainHeader img{
width: 30%;
height: auto;
margin: 2% 0;
}
.mainHeader nav {
background-color: #666;
height:40px;
border-radius:5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
.mainHeader nav ul {
list-style: none;
margin: 0 auto;
}
.mainHeader nav li {
float: left;
display: inline;
}