查看文章 |
自定义file类型input框样式的隐藏方法
2008/05/14 14:14
<style> input{border:1px solid green;} </style> <BODY> <BR><BR><BR> <form method="post" action="" enctype="multipart/form-data"> <input type="text" id="txt" name="txt"> <input type="button" onmousemove="f.style.pixelLeft=event.x-60;f.style.pixelTop=this.offsetTop;" value="请选择文件" size="30" onclick="f.click()"> <input type="file" id="f" onchange="txt.value=this.value" name="f" style="position:absolute;filter:alpha(opacity=0);" size="1" hidefocus><BR> <INPUT TYPE="submit"> </form> </BODY> |
最近读者: