【问题标题】:How to add or update css file in PHPFOX如何在 PHPFOX 中添加或更新 css 文件
【发布时间】:2016-10-19 12:19:26
【问题描述】:

我正在尝试更新现有的 css 文件,但文件没有更新,似乎 phpfox 正在生成缓存。然后我尝试使用以下代码在 template.html.php 中添加另一个 css 文件..

<link rel="stylesheet" type="text/css" href="{param var='core.path'}theme/frontend/freedawn/style/default/css/cus_style.css" />

Html 文件已更新,但显示错误“CSS file not found.

如何在 PHPFox 中添加/更新 css/js 文件?

【问题讨论】:

    标签: php html css phpfox


    【解决方案1】:

    在文件末尾设置版本号以获取当前版本。

    <link rel="stylesheet" type="text/css" href="style.css?1"/>
    

    【讨论】:

      【解决方案2】:

      您是否尝试过在维护/缓存管理器中清除缓存?如果您修改了控制器和资产,例如 CSS,网站很可能会显示旧的缓存数据,您将无法找到您的更改。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-01-21
        • 2021-03-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-03-09
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多