- 博客(3)
- 收藏
- 关注
转载 js添加移除class、显示与隐藏
css:.hide{display: none;} .item{display: inline-block;cursor: pointer;padding: 0 20px;} .inl{display: inline-block;} .rotate-1{-webkit-animation: rotate-1 1s linear both;} .rotate-2{-we...
2018-01-12 15:32:00
5769
转载 获取屏幕窗口信息
// 网页可见区域宽: document.body.clientWidth;// 网页可见区域高: document.body.clientHeight;// 网页可见区域宽: document.body.offsetWidth (包括边线的宽);// 网页可见区域高: document.body.offsetHeight (包括边线的宽);// 网页正文全文宽: do...
2018-01-12 11:57:00
257
转载 li集合绑定点击事件
//Method-1: var items = document.getElementsByTagName('li'); for(var i=0;i<items.length;i++){ items[i].index = i; items[i].onclick = function(){ this.innerHTML = this....
2018-01-12 11:16:00
210
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人