Jquery选择器(二)--Hierarchy
层级选择器
[1] ancestor descendant Returns: Array<Element(s)>
说明: 返回"descendant"匹配的且为"ancestor "匹配元素的所有子孙元素。
$("#prev ~ div").css("border", "3px groove blue");prev: Selector--一个有效的选择器。
siblings: Selector--一个有效的选择器且匹配的元素为第一个选择器匹配元素的兄弟元素。
-------------------------------------------------------