【发布时间】:2012-09-12 16:23:45
【问题描述】:
我正在使用 jcrop,现在我想做类似这里的事情
jQuery(function(){
jQuery(".image_container .a-center h2").html("Upload another picture")
var api;
jQuery('#cropbox').Jcrop({
bgOpacity: 0.5,
bgColor: 'black',
addClass: 'jcrop-dark',
aspectRatio: 320/180,
setSelect:[320,320,180,180],
onSelect: updateCoords,
onChange: updateCoords
},function(){
api = this;
api.setOptions({ bgFade: true });
api.ui.selection.addClass('jcrop-selection');
});
});
它会在选择时给出这种输出
我想要这种选择
我应该怎么做才能获得最大宽度选择。
【问题讨论】: