$(document).ready(function(){
$image_crop = $('#upload-image').croppie({
enableExif: true,
viewport: {
width: 300,
height: 250,
type: 'square'
},
boundary: {
width: 350,
height: 300
}
});
我想給百分比的寬度和高度。在上面的代碼寬度和高度在PX。如何在此代碼中固定寬度和高度爲%
寬度:300 +'%';這是方式 –