切入正题...我创建了这个小站点http://ilmseek.com但我终其一生都无法弄清楚如何让 CSS 文件在Firefox或IE中呈现。
对于这个简单的问题,我深表歉意,但正如你所知,我对此仍然很陌生。
预先感谢您的任何帮助。
但是你们给我的东西很快就解决了。不敢相信这是这么简单的事情。
我真的很感谢所有的帮助......而不是取笑我缺乏技能(尽管我应该因为这么简单的事情而得到它。)
切入正题...我创建了这个小站点http://ilmseek.com但我终其一生都无法弄清楚如何让 CSS 文件在Firefox或IE中呈现。
对于这个简单的问题,我深表歉意,但正如你所知,我对此仍然很陌生。
预先感谢您的任何帮助。
但是你们给我的东西很快就解决了。不敢相信这是这么简单的事情。
我真的很感谢所有的帮助......而不是取笑我缺乏技能(尽管我应该因为这么简单的事情而得到它。)
在您的 CSS 声明中,您有
type="text/stylesheet"
将其更改为
type="text/css"
就像其他人提到的那样,您在 HTML5 中不需要它。
尝试这个
<link rel="stylesheet" type="text/css" href="css/animate.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/grid.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/normalize.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/styles.css" media="screen">
但是在 HTML5 中你不需要使用 type 属性type="text/css"
您正在使用这些错误是什么:
<link rel="stylesheet" type="text/stylesheet" href="css/animate.css">
<link rel="stylesheet" type="text/stylesheet" href="css/grid.css">
<link rel="stylesheet" type="text/stylesheet" href="css/normalize.css">
<link rel="stylesheet" type="text/stylesheet" href="css/styles.css">
<script>
将它们更改为:
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" type="text/css" href="css/grid.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script>
来自w3.org:http://www.w3.org/TR/REC-html40/present/styles.html 。您将从这里了解有关使用和渲染等的更多信息!希望这可以帮助你。
是的,我检查了这些模板..如果你改变我下面给出的链接,它将运行并支持 IE 和 firefox。
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" type="text/css" href="css/grid.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script>
看起来你做对了,你有:
<link rel="stylesheet" type="text/stylesheet" href="css/animate.css">
<link rel="stylesheet" type="text/stylesheet" href="css/grid.css">
<link rel="stylesheet" type="text/stylesheet" href="css/normalize.css">
<link rel="stylesheet" type="text/stylesheet" href="css/styles.css">