Invalid Property Value on background-image

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

    Even if you do everything described above, you may get an "invalid property value" in Firefox. The workaround is to convert:

    background: url(../img/showcase.jpg) no-repeat top center fixed/cover;
    

    into:

    background: url(../img/showcase.jpg) no-repeat top center;
    background-attachment: fixed;
    background-size: cover cover;
    

提交回复
热议问题