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

使input type“file”的浏览按钮透明隐藏的方法jsp代码:input typefile idlicense namelicense s

使input type=“file”的浏览按钮透明隐藏的方法
jsp代码:<input type="file" id="license" name="license" style="opacity: 0;">

?

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