摘要: <script>function newimage(obj) { a = new Image(); var objectURL = window.URL.createObjectURL(obj.files[0]); var img= document.getElementById('img')img.src = objectURL; a.src = objectURL;img.onload=function (){alert(img.width)}}</script><input id="idcardfile" type=&qu 阅读全文
posted @ 2012-06-05 11:56 3H 阅读(223) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html> <head> <meta content="text/html; charset=GBK" http-equiv="Content-Type" /> <title>Image preview example</title><style type="text/css"> div {width:100px;height:100px;border: 1px #A3BFE7 solid;} img {width:a 阅读全文
posted @ 2012-06-05 11:55 3H 阅读(225) 评论(0) 推荐(0) 编辑