背景图像未在烧瓶网站上注册

问题描述 投票:0回答:1

我有这个文件系统:

app
    -templates
    -static
       -css 
          -category.css
       -images
          -image.jpg

我的category.css

body
{
    background-image:url('static/images/image.jpg') <-- attempted with all levels of path
    background-image:url({{'/static/images/'image.jpg}}) ) <-- tried with it all in quotes as well
}

这是简单的CSS,例如样式p标签可以,但是不能。有什么原因吗?

谢谢!

css flask jinja2 web-deployment
1个回答
0
投票

鉴于图像存在于该位置,应该可以使用,

© www.soinside.com 2019 - 2024. All rights reserved.