天使半只翼

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月15日

摘要: 个人改良了一下做做成函数:调用函数$(document).ready(function(){ autoImg("#text2 img",600);autoImg("#text1 img",600);});函数function autoImg(tNmae,wValue){ $(tNmae).each(function(){ if (this.width>wValue) {this.width = wValue;} }); } 阅读全文
posted @ 2012-11-15 12:55 天使半只翼 阅读(731) 评论(0) 推荐(0) 编辑

摘要: onClick="deleteMe(this.parentNode.parentNode);父节点的父节点,比如有这样一段HTML:<form id="form"><div id="divA"> <div id="divB"> <input type="button" value="删除" onClick="deleteMe(this.parentNode.parentNode);"> </div>< 阅读全文
posted @ 2012-11-15 11:01 天使半只翼 阅读(261) 评论(0) 推荐(0) 编辑