Jquery 如何更改plupload缩略图的大小?
我正在使用plupload插件让用户在Jquery 如何更改plupload缩略图的大小?,jquery,plupload,Jquery,Plupload,我正在使用plupload插件让用户在输入[文件]中拖放图像。默认缩略图大小为100x60。我怎样才能把这个尺寸换成另一个?我的初始代码是: $("#uploader1").plupload({ // General settings runtimes : 'html5,flash,silverlight,html4', url : '../upload.php', max_file_count: 1, chunk_size: '1mb', fil
输入[文件]
中拖放图像。默认缩略图大小为100x60。我怎样才能把这个尺寸换成另一个?我的初始代码是:
$("#uploader1").plupload({
// General settings
runtimes : 'html5,flash,silverlight,html4',
url : '../upload.php',
max_file_count: 1,
chunk_size: '1mb',
filters : {
// Maximum file size
max_file_size : '1000mb',
// Specify what files to browse for
mime_types: [
{title : "Image files", extensions : "jpg,gif,png"},
{title : "Zip files", extensions : "zip"}
]
},
sortable: false,
dragdrop: true,
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
// Flash settings
flash_swf_url : '../../js/Moxie.swf',
// Silverlight settings
silverlight_xap_url : '../../js/Moxie.xap'
});
此小部件具有用于自定义缩略图大小的
thumb\u width
和thumb\u height
选项。退房
谢谢,它很管用!但这又带来了另一个问题。现在,它不再加载图像,而是加载虚拟对象。也许你知道是什么导致了这种行为?对我来说很好。看见检查浏览器控制台(F12)中是否没有错误。如果没有,请修改我的样本以重现问题。还要检查是否所有图像都重现了这个问题。当我关闭css时,它工作正常。这太奇怪了。我想我应该选中所有的“display:none”或者我分配给不同元素的任何东西,以我想要的方式设计插件
$("#uploader1").plupload({
// Your settings
thumb_width: 200,
thumb_height: 120
});