如何在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}} –