【问题标题】:CoreUI free bootstrap template not workingCoreUI 免费引导模板不起作用
【发布时间】:2020-07-29 05:31:02
【问题描述】:

我最近下载了 CoreUI 引导免费模板。我尝试启动 index.html ,但 UI 太糟糕了。

CSS 链接到 css/style.css ,但没有 css 文件夹,只有 scss 可用。我尝试更新href以指向ot style.scss,仍然没有用。

任何人都可以指出正确的来源吗? CoreUi 的支持只针对授权版本,所以不能直接与 CoreUI 大佬核实。

下面是下载后的文件夹结构:

CSS href(仅在 index.html 中可用的 CSS 引用):

<link href="css/style.css" rel="stylesheet">
<link href="node_modules/@coreui/chartjs/dist/css/coreui-chartjs.css" rel="stylesheet">

【问题讨论】:

    标签: core-ui


    【解决方案1】:

    在安装文件夹中的 cmd 行中运行此命令:

    npm run serve
    

    【讨论】:

    • 运行上面的cmd后,你会得到带有CSS文件的dist文件夹
    【解决方案2】:

    如果您想使用 CDN,请将以下代码添加到您的 HTML 页面中

    <link rel="stylesheet" href="https://unpkg.com/@coreui/coreui/dist/css/coreui.min.css">
    <script src="https://unpkg.com/@coreui/coreui/dist/js/coreui.bundle.min.js"></script>
    

    这里是使用核心 UI 和 CDN 的文档https://coreui.io/docs/getting-started/download/#coreui-cdn

    【讨论】:

      【解决方案3】:

      安装说明可以在管理模板 Github 上找到:

      https://github.com/coreui/coreui-free-bootstrap-admin-template#installation

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-12-04
        • 2014-10-07
        • 1970-01-01
        • 1970-01-01
        • 2017-06-18
        • 1970-01-01
        相关资源
        最近更新 更多