How to refer to static files in my css files?

后端 未结 8 1805
醉话见心
醉话见心 2020-12-24 11:19

I have a reference inside my CSS file that refers to a static image:

#logo
{
  background: url(\'/static/logo.png\')
}

This works just fi

8条回答
  •  死守一世寂寞
    2020-12-24 11:52

    You can move any CSS that contains static file paths to inline CSS, contained in the template.

    i.e.

    The catch here is that it won't work for @media queries, you'd need to put those in a block, e.g.

    
    

提交回复
热议问题