html预览手机本地图片
来源:互联网 发布:照片书制作软件下载 编辑:程序博客网 时间:2024/04/29 01:27
<!DOCTYPE html> <html> <head> <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"><meta name="format-detection" content="telephone=no"><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Expires" content="0" /><style>.file_div1{width:33%;background-position:center;background-repeat:no-repeat;position:relative;float:left;margin-left:0.3%}.file_img{width:100%;height:100%;}input{width:100%;height:100%;float:left;position:absolute;left:0px;top:0px;background:#ff0000;opacity:0;}.pic_container{margin-top:20px;padding-bottom:20px;}</style><script type="text/javascript"> function preImg(sourceId, targetId) { if (typeof FileReader === 'undefined') { alert('Your browser does not support FileReader...'); return; } var reader = new FileReader(); reader.onload = function(e) { var img = document.getElementById(targetId); img.src = this.result; } reader.readAsDataURL(document.getElementById(sourceId).files[0]); } </script> </head> <body> <form action=""> <div class="file_div1"> <img class="file_img" src="image/cover.png" id="pic_1"/> <input type="file" capture="camera" accept="image/*" id="cameraInput1" name="cameraInput" onchange="preImg(this.id,'pic_1');"> </div> </form> </body> </html>
0 0
- html预览手机本地图片
- iOS HTML图片本地预览
- html选择本地图片即时预览
- 在html页面中预览图片获取本地的绝对路径
- 图片上传,本地预览
- JavaScript本地图片预览
- 本地图片预览功能
- 本地图片预览
- js预览本地图片
- js本地图片预览
- 上传图片本地预览
- 上传图片本地预览
- js本地图片预览
- html5 本地图片预览
- 上传图片本地预览
- FileReader本地预览图片
- JS本地预览图片
- JS 本地图片预览
- maven核心,pom.xml详解(转)
- Ajax提交表单
- QuartzCore框架学习-CADisplayLink
- 性能测试分类
- IOS开发——Swift和Objective-C交互时的一些注意点
- html预览手机本地图片
- c语言的一些细节学习
- Oracle11g下载地址--多平台下的32位和64位
- 与oc 首次接触
- QT控制台下学习类
- iOS中NavigationBar设置
- 用 scipy.weave 嵌入 C 语言
- Nginx + FastCGI 程序(C/C++)
- HTML常用标记