去除<input type='file'>右边路径方法
2017-07-13 18:12
183 查看
1、 设置 隐藏
2、调用click()方法
效果图如下
<input type="file" id="file" display: none" >
2、调用click()方法
<input type="button" id="button" onclick="file.click()" value="选择图片">
效果图如下
相关文章推荐
- 关于获取<input type='file'>获取文件的路径问题
- 未找到导入的项目"盘符:\Microsft.CSharp.targets"。请确认 <Import> 声明中的路径正确,且磁盘上存在该文件。的解决方法
- 关于JSP中单击任意标签弹出文件选择框(<input type="file"/>)的实现方法
- 未找到导入的项目"盘符:\Microsft.CSharp.targets"。请确认 <Import> 声明中的路径正确,且磁盘上存在该文件。的解决方法
- <input type="file" name="filePath" />最简单的解决方法
- #import </usr/include/objc/objc-class.h> not such file or directory问题的解决方法
- <Win32 API> 获取系统文件夹路径 GetModuleFileName
- Spring之Email<封装了常用的四种发送Email的方法(TEXT,HTML,IMG,FILE)>
- 解决微信内嵌浏览器无法响应<input type='file'>上传文件的思路
- 去除CKEditor自动添加的<p></p>标签的方法, 有两种办法:
- jaxb去除JAXBElement<T>的方法
- QT编译错误 No such file or directory #include<QApplication>解决方法
- 另类去除标记<font face="宋体"></font>的方法
- VM8.0下安装遇到了问题“windows cannot read the<product key> setting from the unattend answer file”解决方法
- 去除CKEditor自动添加的<p></p>标签的方法,其实很简单,有两种办法:
- asp.net 中出现<input type="file"/> 控件中获取不到全路径
- 如何获取<input type="file">获取文件路径
- Firefox 和 IE 关于 <input type="file" />宽度兼容性方法。
- 去除<a>标签虚影的一种方法
- Qt4项目迁移Qt5项目一问题解决方法:#include <QtGui/QApplication> ---> No such file or directory