
jquery
新枯木逢春
这个作者很懒,什么都没留下…
展开
-
fetch a dom element style
function getStyle_complex(oElement){ var oStyle; if( window.getComputedStyle ) { if(oElement.tagName.toUpperCase()==="A"){ oStyle_hover = window.getComputedStyle(oElement,"hover"); }else{ oStyle = window.getComputedStyle(oElement,null);原创 2010-08-13 14:49:00 · 728 阅读 · 0 评论 -
页面除某个dom元素之外click事件
<br />$('.switch_city').bind('click',function(e){ var pos = $(this).parent().offset(); var hx = $(this).parent().outerHeight(); $('#more_city').css({'position':'absolute','top':(pos.top + hx) + 'px', 'left':pos.left+'px'}).show(); e.stopPro原创 2011-04-06 13:58:00 · 2869 阅读 · 0 评论