offsetParent( selector ) 方法的作用是:返回一个 jQuery 集合,其中包含第一个匹配元素的定位父元素
例如:
$("button").click(function(){
$("p").offsetParent().css("background-color","red");
});


123coral
2 声望0 粉丝

风一样的。。。。。。