Python Flask 框架中,favicon.ico無法加載顯示的問題解決辦法

將favicon.ico圖標圖片扔到static文件夾下

在相關的html代碼中加入如下代碼:

<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章