offsetParent( selector ) 方法的作用是:返回一个 jQuery 集合,其中包含第一个匹配元素的定位父元素
例如:
$("button").click(function(){
$("p").offsetParent().css("background-color","red");
});
offsetParent( selector ) 方法的作用是:返回一个 jQuery 集合,其中包含第一个匹配元素的定位父元素
例如:
$("button").click(function(){
$("p").offsetParent().css("background-color","red");
});
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。