点击运行
Bootstrap 实例
自定义文件上传控件
我们可以在父元素添加 .custom-file 类,然后在 input 设置为 type="file" 并添加 .custom-control-label:
自定义上传文件样式:
选择文件
默认上传文件样式:
提交
运行结果