gpt4 book ai didi

html - CSS 文件在 Safari 中有效,但在 Google Chrome 或 Firefox 中无效

转载 作者:太空宇宙 更新时间:2023-11-04 08:41:20 25 4
gpt4 key购买 nike

当我在 Safari 中打开我的 index.html 文件时,它会显示所有内容,并使用我的 CSS 文件设置样式。当我用谷歌浏览器打开我的 index.html 时,它似乎只显示 HTML。我不使用 webkit,我只在我的 index.html 文件的 head 标签中使用它来将我的 HTML 与我的 CSS 配对:

CSS:

<link rel=stylesheet type="html/css" href="stylesheet.css">

有谁知道如何在 Google Chrome 中打开它,以便它像 Safari 一样使用我的 CSS 文件?

提前致谢!

最佳答案

首先清除浏览器缓存并禁用一些html/css验证扩展。它肯定会起作用。只需遵循下面的 css 附件语法即可。 <link rel="stylesheet" type="text/css" href="stylesheet.css">

关于html - CSS 文件在 Safari 中有效,但在 Google Chrome 或 Firefox 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44107271/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com