2016-09-17 4 views
6

я хочу сделать, как это в WebPack бутстрапе 4 ENV:Как пользовательский входной файл с начальной загрузки 4

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> 

Как переопределить «заполнитель " и " кнопочная этикетка " значение

ответ

6

Эти значения взяты из CSS:

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

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