Invalid Property Value on background-image

后端 未结 5 1007
北荒
北荒 2020-12-06 09:35
.up { background-image: url(\'/design-library/profound_test/images/cab_images/white-arrow-up.png\') 50% 50% no-repeat; }

This code is giving me an

5条回答
  •  爱一瞬间的悲伤
    2020-12-06 10:26

    Chrome* will also throw this warning (and doesn't display the bg image), if you have a blank space between url and ( like:

    background-image: url ('img/web-bg.png');
                         ^
    

    (Which was the reason for me to search and find this question but no answer and then doing trial and error.)

    • ... maybe depending on the Chrome version, I assume.

提交回复
热议问题