美文网首页HTML5 Bootstrap
Bootstrap 4更改“浏览”按钮文本

Bootstrap 4更改“浏览”按钮文本

作者: ShineYangGod | 来源:发表于2019-02-28 14:50 被阅读0次
<div class="custom-file" id="customFile" lang="es">
        <input type="file" class="custom-file-input" id="exampleInputFile" aria-describedby="fileHelp">
        <label class="custom-file-label" for="exampleInputFile">
           Select file...
        </label>
</div>
更改“浏览”按钮文本需要一些额外的CSS或SASS。
CSS:
.custom-file-input ~ .custom-file-label::after {
    content: "Button Text";
}

相关文章

网友评论

    本文标题:Bootstrap 4更改“浏览”按钮文本

    本文链接:https://www.haomeiwen.com/subject/jtghuqtx.html