【问题标题】:Why am I getting ERROR_FILE_NOT_FOUND after installing Semantic-UI?为什么我在安装 Semantic-UI 后会收到 ERROR_FILE_NOT_FOUND?
【发布时间】:2020-04-13 21:26:00
【问题描述】:

基本的 html 页面。刚开始和下载包。检查我的语义 UI 设置是否正确安装,但是当我打开我的 index.html 页面并检查控制台时,我得到 'GET file:///semantic/dist/semantic.min.css net::ERR_FILE_NOT_FOUND',以及'获取文件:///semantic/dist/semantic.min.js net::ERR_FILE_NOT_FOUND'。这很奇怪!

这些是我在 index.html 文件中的 head 标签内的脚本标签:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>HTML5 boilerplate – all you really need…</title>
    <!-- You MUST include jQuery before Fomantic -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
    <link
      rel="stylesheet"
      type="text/css"
      href="/semantic/dist/semantic.min.css"
    />
    <script src="/semantic/dist/semantic.min.js"></script>
  </head>

  <body id="home">
    <h1>HTML5 boilerplate</h1>
  </body>
</html>

我可以点击两个标签中的相对路径,它会将我带到编辑器中的实际文件。

我当前的文件夹结构是:

语义

距离

semantic.min.css

semantic.min.js

index.html

什么给了?

【问题讨论】:

    标签: javascript html css semantic-ui fomantic-ui


    【解决方案1】:

    试试 ./semantic/dist/semantic.min.css

    【讨论】:

    • 布鲁...谢谢!非常感谢。
    • 没问题,这就是我们来这里的目的。
    猜你喜欢
    • 1970-01-01
    • 2011-09-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-11
    • 1970-01-01
    • 1970-01-01
    • 2021-09-12
    • 2021-09-04
    相关资源
    最近更新 更多