厌倦了一成不变的上传按钮,试试美丽的图片上传吧
<style type="text/css">
#input1{border:0px }
#btn1{width:120px;height:30px;font-size:12px;padding-top:3px;border-left:1px solid #FFFFFF;background:url(1.jpg);border-top:1px solid #FFFFFF;border-right:1px solid #666666;border-bottom:1px solid #666666}
</style>
<input type="button" id="btn1" οnclick="myfile.click();" >
<input type="text" id="input1">
<input type="file" id="myfile" οnchange="input1.value=this.value" style="display:none">