---
title: "Jcrop"
author: "piperzero"
date: "2013-06-13T18:19:00Z"
tags: []
slug: "jcrop"
draft: false
lastmod: "2013-07-16T08:32:13Z"
id: 1906910
url: "https://piperzero.iteye.com/blog/1906910"
---

allowSelect true 允许新选框 allowMove true 允许选框移动 allowResize true 允许选框缩放 trackDocument true baseClass "jcrop" 基础样式名前缀。说明：class="jcrop-holder"，更改的只是其中的 jcrop。 addClass null 添加样式会。例：假设值为 "test"，那么会添加样式到 class="test jcrop-holder" bgColor "black" 背景颜色。颜色关键字、HEX、RGB 均可。 bgOpacity 0.6 背景透明度 bgFade false 使用背景过渡效果 borderOpacity 0.4 选框边框透明度 handleOpacity 0.5 缩放按钮透明度 handleSize 9 缩放按钮大小 handleOffset 5 缩放按钮与边框的距离 aspectRatio 0 选框宽高比。说明：width/height keySupport true 支持键盘控制。按键列表：上下左右（移动）、Esc（取消）、Tab（跳出裁剪框，到下一个） cornerHandles true 允许边角缩放 sideHandles true 允许四边缩放 drawBorders true 绘制边框 dragEdges true 允许拖动边框 fixedSupport true touchSupport null boxWidth 0 画布宽度 boxHeight 0 画布高度 boundary 2 边界。说明：可以从边界开始拖动鼠标选择裁剪区域 fadeTime 400 过度效果的时间 animationDelay 20 动画延迟 swingSpeed 3 过渡速度 minSelect \[0,0] 选框最小选择尺寸。说明：若选框小于该尺寸，则自动取消选择 maxSize \[0,0] 选框最大尺寸 minSize \[0,0] 选框最小尺寸 onChange function(){} 选框改变时的事件 onSelect function(){} 选框选定时的事件 onRelease function(){} 取消选框时的事件

&lt;wbr&gt;&lt;/wbr&gt;