gpt4 book ai didi

html - 将 HTML 链接到已删除的 CSS 文件的行为就像文件仍然存在一样

转载 作者:行者123 更新时间:2023-11-28 01:16:46 24 4
gpt4 key购买 nike

首先,我对此很陌生,可能会犯一个愚蠢的错误。

我在我的树莓派上运行 apache2。我的 HTML 文档中有一个指向 CSS 文档的链接,其中包含背景图片。在对显示的内容进行任何更改之后遇到了一些麻烦,我最终最终删除了 CSS 文档中的所有内容,然后将其完全删除。然而图像仍然显示。当我注释掉指向(现已删除)CSS 文档的链接时,它指示浏览器显示的图像消失了。

我尝试重新启动系统,但“幽灵文件”仍在运行。
如果这意味着什么,我正在使用 nano 进行编辑。

HTML-CSS 链接看起来像
<link href="/css/index.css" type="text/css" rel="stylesheet">
正在运行 ls而在/var/www/html/css 中什么都不返回。

请帮忙!

最佳答案

尝试:

> -Hold the Ctrl key and press the F5 key.
> -Hold the ⇧ Shift key and click the Reload button on the navigation toolbar.
> -Hold the Ctrl key and click the Reload button on the navigation toolbar.
> -Hold the ⇧ Shift key and press the F5 key.

这些是为了绕过浏览器上的缓存。希望这有效。

关于html - 将 HTML 链接到已删除的 CSS 文件的行为就像文件仍然存在一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51777284/

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