【问题标题】:How to add border photo on the thumbnail preview Dropzone Js?如何在缩略图预览 Dropzone Js 上添加边框照片?
【发布时间】:2016-04-15 18:20:48
【问题描述】:

嗨,我有 dropzone Js Upload 刚刚工作,但我需要为我单击 dropzone js 的 Thumb Preview 的图片添加边框。

我该怎么做?

我有这个代码:

 defaultButton.addEventListener("click", function(e) {
          // Make sure the button click doesn't submit the form:
          e.preventDefault();
          e.stopPropagation();
          // Remove the file preview.
          //_this.removeFile(file);
          $.ajax({
                type: 'POST',
                url: "{!! route('setDefaultPhoto' ) !!}" ,
                data: { id : file.serverid },
                dataType: 'JSON'
            });

        });

【问题讨论】:

  • 使用 css img:focus
  • 那个不错的方法,但我只是想通了。谢谢

标签: dropzone.js


【解决方案1】:

只需使用:

.dz-image { border: 1px solid #000 }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-12
    • 2022-12-20
    • 1970-01-01
    • 2020-04-15
    • 2012-03-12
    相关资源
    最近更新 更多