请问怎样把这个出现的按钮换成自己的图片,就是不要这个按钮,要求点击一个图片出现浏览文件夹的功能

yyttrr88888 2006-04-21 10:37:24
请问怎样把这个<input TYPE="file" name="FILE1">出现的按钮换成自己的图片,就是不要这个按钮,要求点击一个图片出现浏览文件夹的功能
...全文
430 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
zqpsswh 2007-04-13
  • 打赏
  • 举报
回复
不错
ldw701 2007-04-06
  • 打赏
  • 举报
回复
好贴!!!!
zhongbx 2007-04-06
  • 打赏
  • 举报
回复
adverse(King) ( ) 信誉:100 Blog 加为好友

被你抢先了,这个是最好的了
melodywithme 2007-04-05
  • 打赏
  • 举报
回复
好贴!!!!
adverse 2007-04-05
  • 打赏
  • 举报
回复
a.addfile {
background-image:url(http://community.csdn.net/logo/images/ajax-in-action.JPG);
background-repeat:no-repeat;
background-position:-823px -17px;
display:block;
float:left;
height:20px;
margin-top:-1px;
position:relative;
text-decoration:none;
top:0pt;
width:80px;
}
<a href=#? class="addfile">
<input id="my_file_element" class="addfile" type="file" name="file_1" size="1" title="点击选择附件">
</a>
学习中啊 2007-04-05
  • 打赏
  • 举报
回复
一般都是把file的控件隐藏了,做个假的显示的哈~!
sandy1314 2007-04-05
  • 打赏
  • 举报
回复
mark
Apq001 2006-04-22
  • 打赏
  • 举报
回复
Mark
jobs002 2006-04-22
  • 打赏
  • 举报
回复
已经收藏............
iuhxq 2006-04-22
  • 打赏
  • 举报
回复
好贴!!!!
ice_berg16 2006-04-22
  • 打赏
  • 举报
回复
<input type="file" style="position:absolute;filter:alpha(opacity=0)" hideFocus onpropertychange="document.getElementById('ice').value=this.value"/>
<input type="text" style="width:152px" id="ice"/>
<img src="http://community.csdn.net/logo/images/ajax-in-action.JPG" height="20" align="absmiddle"/>
Scarroot 2006-04-22
  • 打赏
  • 举报
回复
http://www.blueidea.com/bbs/NewsDetail.asp?id=1227402
Scarroot 2006-04-22
  • 打赏
  • 举报
回复
模拟<input type=file>

87,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧