Bootstrap4 自定义表单

2020-07-10 08:03:28易采站长站整理

自定义文件上传控件

我们可以在父元素添加 .custom-file 类,然后在 input 设置为 type=”file” 并添加 .custom-file-input:

上传控件的文本使用 label 标签,标签使用 .custom-file-label 类,labelfor 属性值需要匹配复选框的 id

Bootstrap4 实例

相关文章 大家在看