Toggle navigation
实例首页
自学教程
IT工具箱
源代码:
下载代码
点击运行
runoops自学教程(runoops.com)
ul (parent)
li (the previous sibling of "start")
li (the previous sibling of "start")
li (sibling)
li (the next sibling of "start")
li (the next sibling of "start")
在这个例子中,我们缩小搜索结果只返回在类名为“star”和“stop”的li元素之间类名为“1”的兄弟元素。
运行结果