0

切入正题...我创建了这个小站点http://ilmseek.com但我终其一生都无法弄清楚如何让 CSS 文件在FirefoxIE中呈现。

对于这个简单的问题,我深表歉意,但正如你所知,我对此仍然很陌生。

预先感谢您的任何帮助。

但是你们给我的东西很快就解决了。不敢相信这是这么简单的事情。

我真的很感谢所有的帮助......而不是取笑我缺乏技能(尽管我应该因为这么简单的事情而得到它。)

4

5 回答 5

4

在您的 CSS 声明中,您有

type="text/stylesheet"

将其更改为

type="text/css"

就像其他人提到的那样,您在 HTML5 中不需要它。

于 2013-09-14T02:06:20.090 回答
1

尝试这个

<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"

于 2013-09-14T02:04:44.280 回答
0

您正在使用这些错误是什么:

<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 您将从这里了解有关使用和渲染等的更多信息!希望这可以帮助你。

于 2013-09-14T02:18:19.037 回答
0

是的,我检查了这些模板..如果你改变我下面给出的链接,它将运行并支持 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>  
于 2013-09-14T04:17:20.293 回答
-1

看起来你做对了,你有:

<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">
于 2013-09-14T02:04:09.343 回答