How to add background image in css?

后端 未结 4 1180
花落未央
花落未央 2021-01-15 15:21

I want to add background image in my css code but it\'s not loading. How to change or add background image in css please help I\'m written css code in notpad++

4条回答
  •  死守一世寂寞
    2021-01-15 16:24

    This is the path u should specify, The way to copy the path is to go the directory where the image is present, then copy path there.

    body { background-image:url("C:\1.jpg");
    

提交回复
热议问题