如何实现非同一父级下的元素兄弟关系查询?
- 内容介绍
- 文章标签
- 相关推荐
本文共计56个文字,预计阅读时间需要1分钟。
01 2 3 4
css.boxdiv { width: 100px; height: 100px; color:}0 1 2 3 4 css
.box>div{ width: 100px; height: 100px; color: #fff; text-align: center; margin-bottom: 10px; } js
var arr=[".no0",".no1",".no2",".no3",".no4"]; $(arr[0]).show().siblings().hide()
本文共计56个文字,预计阅读时间需要1分钟。
01 2 3 4
css.boxdiv { width: 100px; height: 100px; color:}0 1 2 3 4 css
.box>div{ width: 100px; height: 100px; color: #fff; text-align: center; margin-bottom: 10px; } js
var arr=[".no0",".no1",".no2",".no3",".no4"]; $(arr[0]).show().siblings().hide()

