input標籤上傳按鈕相容ie6
阿新 • • 發佈:2018-12-23
<html lang="en"> <head> <meta charset="utf-8"> <style type="text/css"> .zcsqCreate_browse { height: 31px; width: 98px; line-height: 31px; border: 1px solid #bdbcbc; border-radius: 2px; text-align: center; font-size: 14px; color: #737373; display: inline-block; position: relative; cursor: pointer; } .browse { display: block; width: 100%; filter: alpha(opacity=0); height: 31px; position: absolute; left: 0; top: 0; opacity: 0; border-radius: 2px; cursor: pointer; } </style> </head> <body> <span class="zcsqCreate_browse"> 瀏覽 <input type="file" value="瀏覽" class="browse"> </span> </body> </html>