Ker*_* Hu 5 forms file twitter-bootstrap-4 bootstrap-4
我想在webpack bootstrap 4 env中这样做:
http://v4-alpha.getbootstrap.com/components/forms/#custom-forms
文件浏览器
<label class="custom-file">
<input type="file" id="file" class="custom-file-input">
<span class="custom-file-control"></span>
</label>
Run Code Online (Sandbox Code Playgroud)
如何覆盖"占位符" 和"按钮标签"值
这些值来自CSS:
.custom-file-control:lang(en)::after {
content: "Choose file...";
}
.custom-file-control:lang(en)::before {
content: "Browse";
}
Run Code Online (Sandbox Code Playgroud)