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

 <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=this.value" ID="FileUpload1" style="filter: alpha(opacity=0);cursor: hand;" Width="300px" runat="server" />            
            </div>
    </td>
    </tr>
    </table>

posted @ 2014-08-14 16:00  菜鸟@学习园地  阅读(213)  评论(0编辑  收藏  举报