开发者

jquery + imgAreaSelect,the imgAreaSelect is not above the img

开发者 https://www.devze.com 2023-02-02 03:49 出处:网络
i 开发者_如何学运维did the imgAreaSelect on an image that open in a popup,i dindt see the select area but when i close the popup i sew the selected area,what can be the probolme?

i 开发者_如何学运维did the imgAreaSelect on an image that open in a popup,i dindt see the select area but when i close the popup i sew the selected area,what can be the probolme? thanks!


Set zIndex=100001 in jquery.imgareaselect.min.js file. That should solve the problem.


Rather than editing the library, you can set the zIndex as a parameter when creating your selectable region.

$('img#pic_area').imgAreaSelect({
    aspectRatio: "4:3",
    [...]
    zIndex: 10000
});
0

精彩评论

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