温馨提示:本文翻译自stackoverflow.com,查看原文请点击:html - How to change the "Browse" button in Bootstrap custom file input?
bootstrap-4 css html

html - 如何更改Bootstrap自定义文件输入中的“浏览”按钮?

发布于 2020-03-31 23:22:15

我需要将其翻译成另一种语言吗?

编辑:没关系,我自己想通了。

.custom-file-label::after {
content: "Custom label" !important; }

查看更多

提问者
Viktor Mec
被浏览
69
sumeshsn1 2020-01-31 19:30

在CSS上覆盖:

.custom-file-input:lang(en)~.custom-file-label::after {
    content: "Browse";
}

改变内容