<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Demo</title>
<script type="text/javascript">
function F_Open_dialog()
{
document.getElementById("btn_file").click();
}
</script>
</head>
<body>
<div>
<input type="file" id="btn_file" style="display:none">
<img src="http://7u2nae.com1.z0.glb.clouddn.com/2.jpg" onclick="F_Open_dialog()">
</div>
</body>
</html>
相关文章:
- PHP实现图片(文件)上传 2022-01-01
- 转载--python selenium实现文件、图片上传 python selenium实现文件、图片上传 2021-08-31
- 点击图片进行文件上传并预览 2021-11-29
- vue 点击图标实现上传文件效果(icon+input) 2021-11-17
- python selenium实现文件、图片上传 2021-09-29
- 上传图片,点击更换 2021-12-09
- layui 上传图片回显并点击放大实现 2021-12-27