Html 在Firefox上加载CSS,但它';这不是渲染
index.html和style.css在我的本地机器上练习编码 Chrome和Safari能够正确呈现CSS,但FireFox 29却不能。Firefox可以识别css文件,但不会呈现它。我在另一台机器上试过,但仍然有相同的问题 我已经验证了我的代码,没有错误。我是否缺少任何阻止在Firefox中呈现的标记Html 在Firefox上加载CSS,但它';这不是渲染,html,css,firefox,Html,Css,Firefox,index.html和style.css在我的本地机器上练习编码 Chrome和Safari能够正确呈现CSS,但FireFox 29却不能。Firefox可以识别css文件,但不会呈现它。我在另一台机器上试过,但仍然有相同的问题 我已经验证了我的代码,没有错误。我是否缺少任何阻止在Firefox中呈现的标记 <!DOCTYPE html> <html> <head> <meta charset= "utf-8"> <link rel="st
<!DOCTYPE html>
<html>
<head>
<meta charset= "utf-8">
<link rel="stylesheet" type="test/css" href="style.css">
<title>Welcome!</title>
</head>
<body>
<div id="pagewrap">
<!-- Top Head of My Page -->
<div id="header">
<nav id="nav">
<a href="./index.html" id=logo><img src="#" alt="yo"></a>
<div id="socialnetwork">
<a href="#" id="linkicon"><img src="./Social_Icons/Linkedin.png" alt="LinkedIn"></a>
<a href="#" id="fbicon"><img src="./Social_Icons/facebook.png" alt="FB"></a>
<a href="#" id="igicon"><img src="./Social_Icons/Instagram.png" alt="InstaGram"></a>
<a href="#" id="twittericon"><img src="./Social_Icons/Twitter.png" alt="Twitter"></a>
<a href="#" id="skypeicon"><img src="./Social_Icons/Skype.png" alt="Yelp"></a>
<!-- Icons from Dribble by Dawid Dapszus https://dribbble.com/dashoo-->
</div>
<!-- End of Social Network Links-->
<ul>
<li><a href="./index.html" class="navlink">Home</a></li>
<li><a href="./aboutme.html">Portfolio</a></li>
<li><a href="./resume.html">Resume</a></li>
<li><a href="./aboutme.html">About Me</a></li>
<li><a href="./contact.html">Contact </a></li>
</ul>
</nav>
</div>
</div>
<!--End of Page Wrap -->
</body>
</html>
您在链接标记属性值中键入了错误的单词,您键入的是“test/css”而不是“text/css” 您的标签:
<link rel="stylesheet" type="test/css" href="style.css">
更新的标签:
<link rel="stylesheet" type="text/css" href="style.css">
它不应该是:text/css吗?错误控制台中的任何内容?用Inspect元素点击ctrl-shift-kTry。显示有什么错误吗?控制台中没有错误。我使用的是mac电脑,所以我必须搜索快捷方式(cmd+opt+k)才能找到它。:)这应该关闭。这正是打字错误的定义:
test
vs.text
<link rel="stylesheet" type="text/css" href="style.css">
type="test/css"