<html>

<input type="text" size="20" name="upfile" id="upfile" style="border:1px dotted #ccc">
<input type="button" value="" onclick="file1.click()" style="border:1px solid #ccc;background:#fff;width:100px;height:100px;background-image: url('QQ截图20160311171520.jpg');">
<input type="file" id="file1" style="display:none" onchange="upfile.value=this.value"></html>

posted on 2016-03-11 17:26  死神的遗迹  阅读(114)  评论(0编辑  收藏  举报