简体   繁体   中英

How to customize dropzone area in DropzoneJs?

This is current behavior:

目前显示是这样的

I need to customize the height of the dropzone area like bellow.

目标显示与高度

How can I customize the height and width of this dropzone area? I have no clue to solve it. please help.

Using something like:

<div id="dropzone-file-upload" class="dropzone" style="height:200px"></div>

Or create a CSS class if you need to do height and width to make the HTML easier to read.

I will warn you though that this doesn't scale the thumbnails of the files uploaded. I suggest you either add a zoom: x or look at https://www.dropzonejs.com/#configuration-options for thumbnailWidth and thumbnailHeight to be defined in your JavaScript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM