<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>
时间: 2024-10-06 17:31:52