Is quoting the value of url() really necessary?

后端 未结 7 1963
情话喂你
情话喂你 2020-11-22 09:40

Which of the following should I use in my stylesheets?

/* Example #1: */ background-image: url(image.png);
/* Example #2: */ background-image: url(\"image.pn         


        
相关标签:
7条回答
  • 2020-11-22 10:38

    Three ways are legal according to the W3C. If you have special characters in the name (as space) you should use the second or the third.

    0 讨论(0)
提交回复
热议问题