将input file 放在图片上层,且将其透明度设置为0
代码拷贝自:bootstrap-wysiwyg
$('[data-role=magic-overlay]').each(function () {
var overlay = $(this), target = $(overlay.data('target'));
overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
});