CSS Variables with background-image url

后端 未结 2 1616
难免孤独
难免孤独 2021-02-07 00:37

Am I misunderstanding the capabilities of css variables? I am trying to pass a background image url to a variable like this: It seems to be working fine when I pass something si

2条回答
  •  甜味超标
    2021-02-07 01:20

    This is a bug in Chrome, the code works fine in Firefox.

    You'll have to stick with absolute URLs in var() for now.

提交回复
热议问题