html表单上传文件的“浏览”按钮修改方法

发布时间:2022-04-12 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了html表单上传文件的“浏览”按钮修改方法脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

复制代码
代码如下:

<!DOCTYPE HTML PubLIC "-//W3C//DTD HTML 4.01 TransITional//EN">
<html>
<head>
<;meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="PSPad editor, www.pspad.COM">
<title></title>
</head>
<body> <style>
input{border:1px solid #000;}
.clear{clear:both;}
.ehdel_upload_show input{float:left; margin-top:10px;}
.ehdel_upload{float:left;margin-top:-20px; *margin-top:-40px; filter:alpha(opacity=0);-moz-opacity:0;opacity:0;}
</style> <form method="post" action="" enctype="multipart/form-data">
<div class="ehdel_upload_show">
<input id="ehdel_upload_text" type="text" name="txt" />
<input id="ehdel_upload_BTn" type="image" src="http://www.isclassic.net/wp-content/uploads/2010/07/link_popup.gif" value="请选择文件" />
</div>
<div class="clear"></div>
<input type="file" onchange="ehdel_upload_text.value=this.value" class="ehdel_upload" />
</form>
</body>
</html>

脚本宝典总结

以上是脚本宝典为你收集整理的html表单上传文件的“浏览”按钮修改方法全部内容,希望文章能够帮你解决html表单上传文件的“浏览”按钮修改方法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: