2012年12月3日 星期一

[HTML][CSS] How to solve html [type=file] can't work


[HTML][CSS] How to solve html [type=file] can't work



CSS:



<style type="text/css">

<!--

 .ifile {  

    position: absolute;  

    height: 25px;

    width: 90px;  

    left:20px;

    opacity: 0;  

    filter: alpha(opacity = 1);  

    z-index: 2;

    cursor: none;

    border-width: 100px;

}

-->

</style>



HTML :



<input type="FILE" name="restoreFilename" size="20" maxlength="128" class="ifile" onchange="funcBackup();" hidefocus>

<button class="upc_button4 width150" type="button" value="Select File"  hidefocus><span>Select File</span></button>

<input type="text" name="upfile" size="20" readonly>



Reference :




  1. 螞蟻的 CSS


  2. 自定义上传控件input file的样式


  3. CSS教學-關於DIV的POSITION設定


  4. Hidefocus attribute


  5. HTML Button Border


Related Posts:

0 意見:

張貼留言