我试图在我的网站上设置背景图片
但是在style.css
文件是不可见的它有这个错误是"Cannot reslove directory 'Images'
CSS:
background: white url("images/one.png") no-repeat right bottom;
索引.html:
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static 'music/style.css' %}"/>
我想从music/images/one.png
中选择图像
谢谢,这是预付款
我不知道你的文件夹布局,但你有没有尝试提供完整的URL到该文件?如果这不起作用,只要你的文件夹结构合理,你可以尝试相对路径,例如
"../images/one.png"
相关问题 更多 >
编程相关推荐