模拟上传,可自行定义上传按钮的名称和图片。

 <table>
    <tr>
    <td>上传</td>
    <td style="300px;">
   
                <div style="position: absolute; z-index: 3; cursor:hand; float:left; 227px;">
              <input id="FilePathTxt" class="table_input" style="227px;height:16px;" type="text" />
              </div>
                 <div style="z-index: 1; cursor: hand; float:right; line-height:16px;">上传
                 </div>
            <div style="position: absolute; z-index: 2; cursor:hand; 300px; float:left;"  >
                <asp:FileUpload onchange="FilePathTxt.value=this.value" ID="FileUpload1" style="filter: alpha(opacity=0);cursor: hand;" Width="300px" runat="server" />            
            </div>
    </td>
    </tr>
    </table>

原文地址:https://www.cnblogs.com/hclw/p/3912786.html