我想在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>
如何覆盖&#34;占位符&#34; 和&#34;按钮标签&#34; 值
答案 0 :(得分:7)
这些值来自CSS:
.custom-file-control:lang(en)::after {
content: "Choose file...";
}
.custom-file-control:lang(en)::before {
content: "Browse";
}