网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

bootstrap inputfile预览弹窗大小设置

时间:2024-10-25 18:05:43

1、首先$('#activityImg').fileinput({ language: 'zh', uploadUrl: '${ctx}/activity/imgUpload',

bootstrap inputfile预览弹窗大小设置

2、然后allowedFileExtensions: ['jpg', 'png', 'jpeg', 'gif', 'bmp'],

bootstrap inputfile预览弹窗大小设置

3、接着allowedPreviewTypes : ['image', 'html', 'text', 'video', 'audio', 'flash'],

bootstrap inputfile预览弹窗大小设置

4、dropZoneTitle: "上传图片640 * 350分辨率效果更好", // 这个配置就是解决办法了,初始化时限制图片大小,

bootstrap inputfile预览弹窗大小设置

5、最后previewSettings: { image: {width: "100px", height: "100px"}, } })

bootstrap inputfile预览弹窗大小设置
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com