jquery + imgAreaSelect,the imgAreaSelect is not above the img

旧城冷巷雨未停 提交于 2020-01-25 11:28:25

问题


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!


回答1:


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




回答2:


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
});


来源:https://stackoverflow.com/questions/4572920/jquery-imgareaselect-the-imgareaselect-is-not-above-the-img

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!