:before and background-image… should it work?

后端 未结 6 1680
死守一世寂寞
死守一世寂寞 2021-01-31 01:25

I\'ve got a div and apply :before and :after an image as content. That works perfectly. Now I would need to apply a background image so it does repeat

6条回答
  •  無奈伤痛
    2021-01-31 02:23

    you can set an image URL for the content prop instead of the background-image.

    content: url(/img/border-left3.png);
    

提交回复
热议问题