gpt4 book ai didi

dropzone.js - 配置 dropzone 显示区域

转载 作者:行者123 更新时间:2023-12-03 15:25:29 25 4
gpt4 key购买 nike

我已经在我的 ASP.MVC 4 上成功实现了 dropzone.js。
但我需要缩短下拉区域的高度并翻译文本。
有什么简单的方法可以做到吗?我试图修改 CSS 没有结果;下拉区域仍然采用相同的高度。

最佳答案

终于有了自己的答案:

    <html>
<head >
<meta name="viewport" content="width=device-width" />
<title>Index2</title>
<script src="/media/dropzone.js"></script>
<link href="~/Media/css/basic.css" rel="stylesheet" />
<link href="~/Media/css/dropzone.css" rel="stylesheet" />
</head>
<body>
<style>
.dropzone-previews {
height: 200px;
width: 500px;
border: dashed 1px red;
background-color: lightblue;
}
</style>

<div id="previews" class="dropzone-previews"></div>
<button id="clickable">Click me to select files</button>

<script>
new Dropzone("div#previews", { // Make the whole body a dropzone
url: "/home/fileUpload", // Set the url
previewsContainer: "#previews", // Define the container to display the previews
clickable: "#clickable", // Define the element that should be used as click trigger to select files.
maxFiles:5,
acceptedFiles:"image/*,application/pdf"
});
</script>
</body>

关于dropzone.js - 配置 dropzone 显示区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25377744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com