Invalid Property Value on background-image

后端 未结 5 1018
北荒
北荒 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:16

    Yep because the background-image property is for the image part only, not the position or repeat properties of the background, use background:

    .up { 
        background: url('/design-library/profound_test/images/cab_images/white-arrow-up.png') 50% 50% no-repeat; 
    }
    

提交回复
热议问题