gpt4 book ai didi

html - 深夜教师问题 : Linking stylesheet

转载 作者:行者123 更新时间:2023-11-28 07:01:29 25 4
gpt4 key购买 nike

我的网页没有链接样式表。不知道这是怎么回事这是我第一次使用样式表。需要了解我是否只是遗漏了什么。如果有助于理解我的错误来源,愿意发送整个文档。我有。路径都在根文件夹中。不知道我错过了什么。救命!!

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;
}

最佳答案

你有一个简单的错字。应该是<link而不是 </link

使用验证器,例如 http://validator.w3.org马上就会发现这个问题:

Error: Stray end tag link.

关于html - 深夜教师问题 : Linking stylesheet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33207142/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com