开发者

does :hover work for image element in css

开发者 https://www.devze.com 2023-03-30 00:39 出处:网络
I\'m just trying to change the cursor to pointer when the cursor is hovered through image but it\'s not working.

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

精彩评论

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

关注公众号