如何使用jQuery的siblings()方法选择不同父元素下的兄弟元素?
- 内容介绍
- 文章标签
- 相关推荐
本文共计57个文字,预计阅读时间需要1分钟。
0, 1, 2, 3, 4
CSS. .box { width: 100px; height: 100px; color:} html0 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()
本文共计57个文字,预计阅读时间需要1分钟。
0, 1, 2, 3, 4
CSS. .box { width: 100px; height: 100px; color:} html0 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()

