关键点是将input透明化
<div style="background-image: url(images/chosephoto.png);background-repeat:no-repeat;width: 150px;height:38;padding-bottom:10px;"> <input type="file" name="fileToUpload" id="fileToUpload" οnchange="fileSelected();" style="opacity:0; filter:alpha(opacity=0); width: 150px;height:38;"/> </div>