检查元素无法识别 CSS 文件 - 神秘

发布于 2024-12-21 14:42:05 字数 373 浏览 5 评论 0 原文

几天以来最奇怪的事情发生了。检查元素不再识别 css 文件(参见附图)。不知何故,css 文件被列为图像。

我将此 css 文件的内容复制到另一个(工作)css 文件中,以检查问题是否出在内容或其他内容(例如权限)上。但随后工作文件也不再被识别。所以内容确实有些奇怪。

有人有主意吗?

在此处输入图像描述

http://sbx.mujjo.com/media/images/sc.png

The strangest thing is happening since a few days. Inspect element doesn't recognize a css file anymore (See attached image). Somehow the css file gets listed as an image.

I copied the content of this css file into another (working) css file to check if the problem was the content or something else like permissions. But then the working file didn't get recognized anymore either. So there's something really strange with the content.

Anybody got an idea?

enter image description here

http://sbx.mujjo.com/media/images/sc.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

纵山崖 2024-12-28 14:42:05

解决了!以下行导致了此问题: background: url('') top left no-repeat; 显然不允许将 url 留空。这至少会混淆检查元素! – Remy Nagelmaeker 2011 年 12 月 17 日 18:04

Solved! The following line caused this issue: background: url('') top left no-repeat; Apparently it's not allowed to leave the url blank. This confuses inspect elements at least! – Remy Nagelmaeker Dec 17 '11 at 18:04

不必你懂 2024-12-28 14:42:05

您确定您像这样放置样式表吗?

<link rel="stylesheet" type="text/css" href="path/to/styles.css" />

Are you sure your putting your stylesheet in like so?

<link rel="stylesheet" type="text/css" href="path/to/styles.css" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文