开发者

Help text for asp:FileUpload or input:file

I would like to know whether this is possible w开发者_如何学运维ith input:file

URL: http://www.kryogenix.org/code/browser/labelify/

Regards,

naveenj


You can have a input button/text pointing to a hidden file input. A rough example would be like:

<input type="button" value="Filessssss" onclick="this.nextElementSibling.click();">
<input type="file" style="visibility:hidden;display:absolute;" onchange="this.previousElementSibling.value=this.files[0].name">

Then you can apply labelify on the button or text. (tested on Chrome)


I don't think so. There is no simple way that you can style input:file. You need to use a different file upload mechanism - either a flash based one, or one using the new HTML5 features.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜