正如标题所述,我已经有了我的style.css和我的style.css内部
font-family: 'Permanent Marker', cursive;
如果我正常加载页面(打开我的主html文件),它将显示新字体,但是,当我尝试启动render_template并使用flask将网页托管在localhost上时,它将拒绝显示该字体。不知道是什么原因造成的。
答案 0 :(得分:0)
您已实现以下代码:
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
在您的html页面中?
您是否已在HTML页面中使用此语法添加了CSS文件。
<link rel="stylesheet" href="{{ url_for('static', filename='/main.css')}}">`?