<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<script type="text/javascript">
function file_change(e)
{
document.getElementById("file_name").value = e;
}
</script>
</head>
<body>
<form action="">
<input type="text" readonly="readonly" name="file_name" id="file_name"/>
<input type="file" name="btn_file" style="display:none" οnchange="file_change(this.value)"/>
<input type="button" value="浏 览" οnclick="btn_file.click();" name="get_file"/>
<input type="submit" value="提 交" name="sub"/>
</form>
</body>
</html>
html 上传样式 file的修改
最新推荐文章于 2021-06-10 13:11:37 发布