override the src of an html img via css
I have this image tag:
<img src="http://placehold.it/200x200"/>
I need to replace the image via css (because I can't edit the html),so I
use this css:
img {
content: url('http://lorempixel.com/200/200');
}
it's working well on chrome but not working in firefox and ie,any idea why?
No comments:
Post a Comment