python - 无法使用 FLASK 附加包含动画的 css 文件
问题描述
这是html文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>Covid-19 News Detection</title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='css/style.css')}}">
<link rel="stylesheet" type="text/css" href="
{{url_for('static',filename='css/materialize.css')}}">
</head>
这是路线
@app.route('/')
@app.route('/home')
def home():
return render_template('home.html')
当我运行 ip 时,即使只是将 html 作为静态 chrome 文件“.html”打开时也没有任何变化,我看到了动画
解决方案
推荐阅读
- azure - Azure Functions VNet 集成
- javascript - 用javascript制作赛车游戏。尝试模拟迎面而来的汽车时,当其他汽车到达终点时,我无法创建更多汽车
- javascript - 无法使用 konva 重新调整视频窗口的大小
- flutter - 如何在颤振中等待吸气剂?
- c++ - 尽管遵守规则,但内存泄漏在哪里?
- c++ - 函数解析和排序
- python - 范围步长乘以 2 的 Python 循环
- node.js - 在 netlify 渲染空白页上持续部署一个 React 应用
- sql-server - 从 Apache Beam 连接到 GCP Cloud 中的 SQL Server 实例
- sql - 关于索引的 SQL 问题。如何调用我创建的索引