CSS: Setting background-image in CSS

后端 未结 8 1859
一整个雨季
一整个雨季 2021-01-05 03:46

What is the correct syntax when setting the background-image in CSS? In visual studio, there seems to be no problem in the background since it appears. But in the browser li

8条回答
  •  悲哀的现实
    2021-01-05 04:39

    Are you certain about the / at the beginning of the url? Aren't you trying to reach the image in the "images" subdirectory... which would imply url('images/bgimage.jpg')?

提交回复
热议问题