开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜