我在Firefox和IE中遇到文件按鈕樣式問題。它在Chrome中正常工作。IE和Firefox中的文件按鈕問題
CSS
.custom-file-input { background-color:#44c767;-moz-border-radius:28px;-webkit-border-radius:28px;border-radius:28px; border:1px solid #18ab29;display:inline-block;cursor:pointer;
color:#ffffff;font-family:arial;font-size:17px;padding:16px 31px;text-decoration:none;text-shadow:0px 1px 0px #2f6627; }
.custom-file-input:hover { background-color:#5cbf2a; }
.custom-file-input:active { position:relative; top:1px; }
.custom-file-input::-webkit-file-upload-button { visibility: hidden; }
.custom-file-input::before { content: 'Upload';outline: none; white-space: nowrap;-webkit-user-select: none;cursor: pointer;font-size: 11pt; }
input[type="file"] { width: 11%; height:55px; float:left; }
input[type="button"] { overflow:hidden; }
HTML
<input type="file" id="imgModalBanner" class="custom-file-input" value="Upload" onchange="readURL(this)" />
<input type="button" id="btnFinish" class="custom-file-input" value="Finish" />
請擺弄它。謝謝\ – Tushar 2014-09-29 06:34:13
我已經嘗試了幾個小時。但是,沒有運氣。 – KiranD 2014-09-29 06:36:08
Atleast爲其他人撥弄它 – Tushar 2014-09-29 06:36:45