【发布时间】:2015-05-28 20:30:13
【问题描述】:
我想知道这是否可行?谷歌一无所获。
基本上我希望我的按钮在被选中时进行模拟,允许用户上传文件。我已经用标签读过它的可能性,但我需要用一个按钮来做 UX/UI
<button style="position:fixed;bottom:10px;right:70px" type="button" class="btn btn-default">
<input type="file" id="files" visbility="hidden" />
<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
</button>
目前我的按钮如下所示: 对此:
【问题讨论】:
-
您可以使用
hidden属性代替visbility="hidden",例如:<input type="file" id="files" hidden />(w3schools.com/tags/att_global_hidden.asp)
标签: jquery html css button input