生成的 CSS 样式表被 IE9 和 Firefox 忽略

发布于 2025-01-08 16:54:06 字数 542 浏览 2 评论 0原文

您可以在此处查看我正在构建的内容以及源代码: http://eiskis.net/proot /pika/proot/

我正在从多个部分生成样式表和脚本文件。样式本身似乎工作正常,但 Firefox 和 IE9 根本不应用这些样式。源代码具有正确的链接,当我在 Firefox 源浏览器中单击该链接时,它会将我带到源代码。 JavaScript似乎可以正常应用。在 Chrome 和 Opera 上,样式和行为都按预期工作。

我最初的想法是 MIME 类型不好,但标头应该正确传递。 Firefox 还将 CSS 文件的类型显示为 text/css。

http://eiskis.net/proot/pika/helloworld/docs/ 是使用相同的系统创建的,并且该问题也普遍存在。

You can see what I'm building, and the source code here: http://eiskis.net/proot/pika/proot/

I'm generating both stylesheets and script files from multiple pieces. The styles themselves seem to work fine, but Firefox and IE9 do not apply the styles at all. The source code has the link correctly, and it takes me to the source code when I click the link in Firefox' source browser. JavaScript seems to be applied normally. On Chrome and Opera, both styles and behavior work as expected.

My initial thought was bad MIME types, but the headers should be passed correctly. Firefox also shows the type of the CSS file as text/css.

http://eiskis.net/proot/pika/helloworld/ and docs/ are created with the same system, and the problem is also prevalent there.

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

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

发布评论

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

评论(1

独留℉清风醉 2025-01-15 16:54:06

您的 CSS 中有错误。

生成的CSS第142行:

input[type="submit] { cursor: pointer;}

应该是:

input[type="submit"] { cursor: pointer;}

There is an error in your CSS.

On line 142 of the generated CSS:

input[type="submit] { cursor: pointer;}

should be:

input[type="submit"] { cursor: pointer;}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文