html
<input type="file">
css
<style>
/* 按钮后面的文字样式 */
[type='file'] {
color: aqua;
font-size: 0; //设置为0 不显示
}
/* 按钮样式 */
::file-selector-button {
height: 3rem;
font-size: 18px;
padding: 10px;
background-color: aqua;
color: #fff;
border: 1px solid aqua;
border-radius: 20px;
box-sizing: border-box;
}
</style>