【问题标题】:Plugins cannot find their css styles in folder插件在文件夹中找不到它们的 css 样式
【发布时间】:2015-01-30 11:06:24
【问题描述】:

我已经从主题森林下载了这个模板:http://themeforest.net/item/-medic-medical-health-and-hospital-html5-theme/8331329。原始模板在根文件夹中有 /plugins/ 文件夹。我将此文件夹移动到 /assets/plugins/ 中,并将其包含在 HTML 中,如下例所示:

<script type="text/javascript" src="/assets/plugins/smooth-scroll.js"></script>

找到了 javascript 文件,但插件仍在从原始文件夹 /plugins 中请求其 css 文件,而不是在 /assets/plugins/ 中,例如: p>

http://www.scsppza.local/plugins/royalslider/royalslider.css Failed to load resource: the server responded with a status of 404 (Not Found) 

我找不到为这些插件定义的 css 文件的路径。有办法解决吗?

【问题讨论】:

  • 为什么我会被拒绝?这是错误的表述还是什么?我真的需要一个解决方案。
  • 我想这是你应该问的主题森林。

标签: javascript css plugins filepath file-not-found


【解决方案1】:

打开 assets/css/style.css 文件并更改 @import url!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-03-20
    • 1970-01-01
    • 2015-12-18
    • 2020-06-01
    • 2020-09-05
    • 1970-01-01
    • 1970-01-01
    • 2011-08-04
    相关资源
    最近更新 更多