- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 获取for循环中的索引值
*{ margin: 0; padding: 0; } li{ margin-bottom: 10px; } 1 2 3 //获取索引值的方法 //1.用index var oList = document.getElementsByTagName("li"); for(var i=0;i oList[i].index = i; oList
2017-02-28 19:02:47 3607
原创 原生js写手风琴
原生js手风琴特效 *{ margin: 0; padding: 0; } ul,li{ list-style: none; } .box{ width: 1050px; height: 300px; margin: 100px auto; overflow: hidden; } .accordion li{ float: left; width: 100px
2017-02-25 01:56:02 2571
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人