文件输入样式修改

<title>文件域美化</title>
<style type="text/css">
.input_text{width:250px;}
.input_file{width:300px; margin-left:-300px; filter:alpha(opacity=0); opacity:0;}
</style>
html部分:
<body>
<form method="post">
<input class="input_text" type="text" id="txt" name="txt" />
<input type="button" value="浏览" />
<input class="input_file" size="30" type="file" onchange="txt.value=this.value" />
</form>
</body>

http://hi.baidu.com/web_vv/item/5d4ded8285a498e1e496e074

posted @ 2013-07-12 18:12  linksgo2011  阅读(121)  评论(0)    收藏  举报