定义input type="file" 的样式 <br />body{ font-size:14px;}<br />input{ vertical-align:middle; margin:0; padding:0}<br />.file-box{ position:relative;width:340px}<br />.txt{ height:22px; border:1px solid #cdcdcd; width:180px;}<br />.btn{ background-color:#FFF; border:1px solid #CDCDCD;height:24px; width:70px;}<br />.file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px }<br />