将Jcrop选择的外部区域设置为不可见

时间:2014-08-27 02:35:45

标签: javascript jquery jcrop

如果图像覆盖在不同图像的顶部,我希望在同时裁剪前景图像时能够看到背景图像。

示例:图像A位于图像B的顶部.Jcrop应用于图像A,当选择发生时,选择区域仅显示图像A的选定部分。图像B在背景中可见,围绕该区域选择图像A。

enter image description here enter image description here

这可能吗?

1 个答案:

答案 0 :(得分:0)

$(function($){
    $('#target').Jcrop({
        bgColor: '',
        bgOpacity: 0
    });
});
相关问题