How to add background image in css?

后端 未结 4 1155
花落未央
花落未央 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:08

    .Your class name {
    
    background-image: url("your image url");
    
    background-repeat: no-repeat;
    
    background-size: 100% 100%;
    
    float: left;
    
    width: auto;
    
    }
    

    Please try Above type of code in your css section.

提交回复
热议问题