使inputtype=“file”的浏览旋钮透明隐藏的方法

使inputtype“file”的浏览按钮透明隐藏的方法input typefile namelicense styleopacity: 0?op

使inputtype=“file”的浏览按钮透明隐藏的方法

<input type="file" name="license" style="opacity: 0;">

?

opacity: 0是让input type=”file”全透明,这样用户看不到input type=”file”。层级在文本框和按钮之上。这样用户在点击按钮的时侯实际上点击的input type=”file”