1
文件上傳字段由瀏覽器控制,以便根據瀏覽器設置自動翻譯文件。我需要在這個按鈕上設置我的語言。我該怎麼做?在聯繫表格中更改「選擇文件」按鈕的文本7(WordPress)
文件上傳字段由瀏覽器控制,以便根據瀏覽器設置自動翻譯文件。我需要在這個按鈕上設置我的語言。我該怎麼做?在聯繫表格中更改「選擇文件」按鈕的文本7(WordPress)
我在sitepoint上找到了解決方案。正好在以下。文件恢復對你的文件輸入名稱,然後修改你的按鈕。
/* Style wrapping span as button */
span.wpcf7-form-control-wrap.file-resume {//FILE-REsume == your name of file input
display: inline-block;
position: relative;
width: 120px;
height: 40px;
border-radius: 5px;
border: solid 1px #11b28e;
background: gray;
color: #FFF;
overflow:hidden;
}
/* Made input big and move it left and top inside wrapper to hide actual control but leave input clickable */
input.wpcf7-form-control.wpcf7-file {
position: absolute;
width: 1500px;
height: 1000px;
right: 0;
bottom: 0;
outline: none !important;
}
/* Add button text */
.wpcf7-file:before {
content: "прикріпити файл";
display: block;
width: 120px;
height: 40px;
line-height: 40px;
text-align: center;
position: absolute;
right: 0;
bottom: 0;
color: #FFF;
font-size: 16px;
}
您是否得到了答案? – input