I need to change <img>
source URL on hover
.
I have tried this but won't work :
HTML
<img id="my-img" src="http://dummyimage.com/100x100/000/fff"/>
CSS
#my-img:hover {
content: url('http://dummyimage.com/100x100/eb00eb/fff');
}
jsFiddle
Any help would be appreciated.
Update:
This only works for Webkit / Google Chrome.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…