【问题标题】:In flask my html file from templates is not being linked to css file in static folder even though i have written correct code to link that在 Flask 中,我的模板中的 html 文件没有链接到静态文件夹中的 css 文件,即使我已经编写了正确的代码来链接它
【发布时间】:2023-02-10 04:46:58
【问题描述】:

我想将模板文件夹中的 html 文件链接到静态文件夹中的 CSS 文件。据我所知,我认为我输入了正确的语法,但仍然没有用。我不知道,可能是什么原因。

我正在为我在 flask python 中的最后一年项目做准备。我尝试了很多次,但 CSS 似乎并没有影响我的 html 页面。请帮我做点什么。我试过简单地按 shift +f5 但不知道该怎么做。我是 python 的新手。

【问题讨论】:

标签: html templates flask static url-for


【解决方案1】:

我建议您包括所有相关代码,如果没有任何代码进行审查,很难看到问题。

另外,如果我学到了一些东西,99% 的问题都是错字,所以从“搜索错字”开始

【讨论】:

    猜你喜欢
    • 2022-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-06
    • 2018-09-06
    • 1970-01-01
    • 2022-08-19
    • 2018-02-26
    相关资源
    最近更新 更多