如何使用bootstrap 4

时间:2016-09-17 08:33:50

标签: 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>

如何覆盖&#34;占位符&#34; &#34;按钮标签&#34;

1 个答案:

答案 0 :(得分:7)

这些值来自CSS:

.custom-file-control:lang(en)::after {
  content: "Choose file...";
}

.custom-file-control:lang(en)::before {
  content: "Browse";
}