springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 13:19:16
87
我有一个django网站,在我的html中,我在visual studio编辑器中得到了这些,我不知道为什么。基本上一切都可以工作,但我对flex有一些问题,有时它不能工作,我也不知道它是否连接。
知道这是什么吗?
这是home.html
<section class="welcome_area clearfix" id="home" style="background-image: url({% static 'img/bg-img/welcome-bg.png' %})">
在base.html中相同
<section class="welcome_area clearfix" id="home" style="background-image: url({% static 'img/bg-img/welcome-bg.png' %})">
编辑
根据sunil ghimire的回答更改后。
顺晟科技:
问题在于Django曲解了双引号和单引号(字符串以错误的位置结束),因为您必须使用3个嵌套字符串。
您的3个字符串是: 1:.
2:.
3:
django如何解释它们(开始引号和结束引号):
1:.
2:.
3:.
可以做的事情:
使用绝对url而不是{%static%}
home.html
<section class="welcome_area clearfix" id="home" style="background-image: url({% static 'img/bg-img/welcome-bg.png' %})">
base.html
<section class="welcome_area clearfix" id="home" style="background-image: url({% static 'img/bg-img/welcome-bg.png' %})">
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11