首页 > 代码库 > 模拟上传,可自行定义上传按钮的名称和图片。

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

 <table>
    <tr>
    <td>上传</td>
    <td style="width:300px;">
   
                <div style="position: absolute; z-index: 3; cursor:hand; float:left; width:227px;">
              <input id="FilePathTxt" class="table_input" style="width: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; width:300px; float:left;"  >
                <asp:FileUpload onchange="FilePathTxt.value=http://www.mamicode.com/this.value" ID="FileUpload1" style="filter: alpha(opacity=0);cursor: hand;" Width="300px" runat="server" />            
            </div>
    </td>
    </tr>
    </table>