我无法更改dropzone上传器的默认文本.尽管事实上我已经像这样初始化它,它仍然呈现默认文本:
Dropzone.options.imgUpload = { paramName: "file", // Must match the name of the HttpPostedFileBase argument that the Upload action expects. dictDefaultMessage: "Drag your image here", acceptedFiles: "image/*" // Accept images only };
还尝试更改dropzone.js中设置的dictDefaultMessage,但没有运气:(顺便说一下;我应该使用两者还是删除其中一个?
有什么建议?
通过basic.css
单独包含文件解决了这个问题.这不会渲染精灵,你可以完全控制掉区内的样式(它只是给了jo一个基本的骨架来改进).这样做时,dictDefaultMessage
会显示.