如何在CSS中使用静态配置文件?如何在CSS中使用静态配置文件?
body {
background: url('static/img/body.png');
padding-top: 20px;
padding-bottom: 40px;
font-family: Georgia,"Bitstream Charter",serif;
}
这不行。
我的静态的conf:
你的CSS文件里STATIC_ROOT = '/home/user/domains/domain/public_html/website/website/static/'
STATIC_URL = '/home/user/domains/domain/public_html/website/website/static/'
{{STATIC_ROOT}} –