首页 文章

Firefox CSS无法正常工作[关闭]

提问于
浏览
-1

我正在开发的网站duncanhill.com.au在chrome,safari和opera中看起来很不错,但是当我在firefox上查看时 - 它看起来好像没有样式表(见下面的截图) . 当我进入检查员(我不使用firefox)我甚至无法在任何地方找到style.css文件 .

截图:

Firefox:
Firefox

Safari/Chrome/Opera:
Safari/Chrome/Opera

这是style.css文件的链接:

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="css/text">

Update: 根据Andy的建议,将链接类型 - type="css/text" 更改为 type="text/css"

如何让style.css文件起作用?

任何帮助表示赞赏!

1 回答

  • 1

    看起来好像你的 style.css 文件有错误的 link 类型 . 如果这不正确,某些浏览器将无法识别该链接 .

    更改:

    type="css/text"
    

    type="text/css"
    

相关问题