does :hover work for image element in css
I'm just trying to change the cursor to pointer when the cursor is hovered through image but it's not working.
Does img:hover wor开发者_StackOverflow社区ks in chrome 13 or other browsers.
img:hover
{
cusror:pointer;
}
and html is sa below
<div>
<img src="images/ocean1.jpg" width="200" height="120">
</div>
For cursor: pointer you don't need to use hover. Just use:
img {
cursor: pointer;
}
The cursor will then automatically change to a pointer when you hover over any image.
加载中,请稍侯......
精彩评论