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