我的页面中有一张图片,当我将鼠标悬停在该图片上时 text-decoration:underline;
css 属性不起作用...
<div class='imgover'>
click me<img src='http://www.google.co.uk/images/srpr/logo3w.png' alt='Img' />
</div>
css类如下,
.imgover:hover
{
text-decoration:underline;
}
引用此链接 http://jsfiddle.net/smanimani/cwnwK/1/
但是文本装饰对于文本工作正常,但它不适用于图像...!
我该如何解决?
提前致谢....!
最佳答案
使用
.imgover:hover
{
border-bottom: 1px solid red;
}
关于CSS - 文本装饰不适用于图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12858427/