提问人:faixak 提问时间:11/17/2023 最后编辑:faixak 更新时间:11/17/2023 访问量:15
将 Customized Bulma 与 Flask 一起使用时出现的问题
Problems with using Customized Bulma with Flask
问:
当我尝试使用自定义 Bulma 运行我的 Flask 项目时,我不断收到错误“GET /css/mystyles.css HTTP/1.1” 404。 我如何在 index.html 中链接样式表:
<link rel="stylesheet" href="css/mystyles.css">
这是我遵循的 Bulma 文档来设置自定义 Bulma: https://bulma.io/documentation/customize/with-node-sass/
我尝试将css文件夹移动到templates文件夹中,但它什么也没做。
如果我只使用 Bulma 而没有任何自定义,只需链接 Bulma CSS 文件,该项目就可以工作,如本文档所示: https://bulma.io/documentation/overview/start/
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
/>
答: 暂无答案
评论
<link rel="stylesheet" href="{{ url_for('static', filename='css/mystyles.css’) }}”>