2015-09-28 67 views

回答

0

现在,我使用这个方法,只是不显示预览的工具提示:

$(":file").fileinput({ 
    layoutTemplates: { 
     footer: '<div class="file-thumbnail-footer">\n' + 
       ' <div class="file-caption-name" style="width:{width}">{caption}</div>\n' + 
       ' {progress} {actions}\n' + 
       '</div>' 
    }, 
    previewTemplates: { 
     image: '<div class="file-preview-frame" id="{previewId}" data-fileindex="{fileindex}">\n' + 
       ' <img src="{data}" class="file-preview-image" alt="{caption}" style="width:{width};height:{height};">\n' + 
       ' {footer}\n' + 
       '</div>\n' 
    } 
});