如何做出型如下图示的文件域? 其实很简单: <div style="cursor: pointer; background: url("../templates/images/file.gif") no-repeat scroll left center transparent; width: 236px;"> <input type="file" style="height: 25px; width: 236px; cursor: pointer; opacity: 0;" name=""> </div> 原理:两层,底层是带背景图的div;顶层是透明了的文本域。