然而如果使用flask开发web,并且需要在本地导入已经写好的css js 文件或者image一系列,这些文件是静态文件,需要另外建一个文件夹static;
并且在html文件修改导入方法,
example: href=''{{url_for('static',filename='css/xxx.css')}}''

filename为static下的文件路径+文件名

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-04-08
  • 2021-09-19
  • 2022-02-11
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案