昨天還能正常預(yù)覽的報告,今天就訪問異常了秕豫,打開console一看朴艰,bootstrap失效了,暈~
解決辦法:在template.html文件中替換掉失效的文件鏈接
具體操作:在【Python安裝目錄】\Lib\site-packages\BeautifulReport\template目錄下混移,找到這個文件
替換
<link rel="stylesheet">
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
參考文章:https://blog.csdn.net/qq_43278421/article/details/106516409