接上篇,通过JQuery获取网页中图片的宽度和高度---示例
来源:互联网 发布:淘宝网服装 编辑:程序博客网 时间:2024/05/18 00:43
<!doctype html><html><head><meta charset="utf-8"><title>获取图片宽度demo</title><script src="http://code.jquery.com/jquery-1.7.1.min.js"></script><script type="text/javascript">$(window).load(function(){w=$("#aa").width();h=$("#aa").height();alert(w);alert(h);});</script></head><body><img id='aa' src='http://www.php100.com/uploadfile/2013/0905/20130905082334814.jpg' /></body></html>
这个demo获取到了图片的宽度和高度,使用的不是document.ready而是window.load,注意区别!
- 接上篇,通过JQuery获取网页中图片的宽度和高度---示例
- javascript、jquery获取网页的高度和宽度
- javascript、jquery获取网页的高度和宽度
- JavaScript、JQuery获取网页的高度和宽度
- 网页中限制图片的最大宽度和高度
- jquery获取图片原始尺寸 (高度与宽度)示例
- jquery获取文本的宽度和高度。
- 获取图片宽度和高度的类
- 获取ALAset的图片宽度和高度
- 获取图片真实的宽度和高度
- Android获取图片的宽度和高度
- 获取图片宽度和高度
- 获取图片高度和宽度
- js和jquery如何获取图片真实的宽度和高度
- js和jquery如何获取(图片)真实的宽度和高度
- js和jquery中获取各种高度和宽度汇总
- [js][jQuery]JQuery获取浏览器的高度和宽度
- jquery动态插入图片 获取高度宽度
- pthread_cancel引起的死锁
- Bug 4483368 : SEVERAL RMAN CATALOG START WITH CREATES DUPLICATE CATALOG ENTRIES
- 共有76款 WIKI系统开源软件
- mysql-bin.index 是什么内容呢??
- 网赚的好方法
- 接上篇,通过JQuery获取网页中图片的宽度和高度---示例
- Mount Options for Oracle files when used with NFS on NAS devices (文档 ID 359515.1)
- ENGLISH资料收集(28)-男女不应有别
- Cognos入门教程(一)- powerplay client安装
- C++类型转换
- How to change Flash Recovery Area to a new location ? (文档 ID 305651.1)
- LA3135——Argus(优先队列)
- Sizeof与Strlen的区别与联系
- 思考跨域