Replace image src location using CSS

后端 未结 4 1457
旧时难觅i
旧时难觅i 2020-12-17 09:40

I have a website that has an image with a src attribute and I would like to change the src location of that image with an image of my own. The image lives in a div component

4条回答
  •  醉梦人生
    2020-12-17 10:04

    Here is another dirty hack :)

    .application-title > img {
    display: none;
    }
    
    .application-title::before {
    content: url(path/example.jpg);
    }
    

提交回复
热议问题