How to give the background-image path in CSS?

后端 未结 6 1386
粉色の甜心
粉色の甜心 2020-11-28 23:53

My CSS file is in :

Project/Web/Support/Styles/file.css

My image is in :

Project/Web/images/image.png

I want this image in my CSS file.

6条回答
  •  攒了一身酷
    2020-11-29 00:39

    You need to get 2 folders back from your css file.

    Try:

    background-image: url("../../images/image.png");
    

提交回复
热议问题