您的位置:首页 > 其它

修改上传空间默认文字

2014-12-28 00:00 253 查看
摘要: input type=file的默认显示文字由浏览改成自定义样式

隐藏file空间,使用一个button按钮的onclick事件代替

<form name=formen>
<input type="file" name="picpath" id="picpath" style="display:none"

onChange="document.formen.path.value=this.value">
<input name="path" readonly>

<input type="button" value="Browse" onclick="document.formen.picpath.click()">

</form>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: