手机
当前位置:查字典教程网 >网页设计 >XHTML >html表单上传文件的“浏览”按钮修改方法
html表单上传文件的“浏览”按钮修改方法
摘要:input{border:1pxsolid#000;}.clear{clear:both;}.ehdel_upload_showinput{...

<!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>

<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></div>

<input type="file" onchange="ehdel_upload_text.value=this.value" />

</form>

</body>

</html>

【html表单上传文件的“浏览”按钮修改方法】相关文章:

表单文件选择框样式自定义示例

关于table表格中的内容溢出布局方法

html文件中flash视频格式(flv、swf)文件的嵌入方法

html text的常用事件和方法详细描述

form上传文件后提示保存action的原因及解决方法

向HTML中插入视频并兼容所有浏览器的方法

浅析响应式框架中,table表头自动换行的快速解决方法

html设置虚线边框的方法

html 表格比较宽溢出的解决方法

在html中添加script脚本的2种方法和注意事项

精品推荐
分类导航