开发者

ZeroClipboard.js onhover cursor pointer issue

开发者 https://www.devze.com 2023-03-13 06:40 出处:网络
I am using ZeroClipboard.js. The cursor pointer (hover effect) doesn\'t come to the copy link at the page load it shows only cursor arrow, only if you interact on page somewhere and go to link again t

I am using ZeroClipboard.js. The cursor pointer (hover effect) doesn't come to the copy link at the page load it shows only cursor arrow, only if you interact on page somewhere and go to link again then you see the pointer. Anybody seen this issue, has a solution for fixing it 开发者_如何学运维to show pointer on load itself.


With this css:

 .zeroclipboard-is-hover { cursor:pointer; }


You didn't say what your setup is. Try with:

 var clip = new ZeroClipboard($("#your-copy-button-id"));
 clip.setHandCursor(true);

or use css:

#your-copy-button-id {
    cursor: pointer;
}
0

精彩评论

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

关注公众号