摘要: css: .hide{display: none;} .item{display: inline-block;cursor: pointer;padding: 0 20px;} .inl{display: inline-block;} .rotate-1{-webkit-animation: rot 阅读全文
posted @ 2018-01-12 15:32 joker_xd 阅读(2513) 评论(0) 推荐(0) 编辑
摘要: // 网页可见区域宽: document.body.clientWidth;// 网页可见区域高: document.body.clientHeight;// 网页可见区域宽: document.body.offsetWidth (包括边线的宽);// 网页可见区域高: document.body. 阅读全文
posted @ 2018-01-12 11:57 joker_xd 阅读(827) 评论(0) 推荐(0) 编辑
摘要: //Method-1: var items = document.getElementsByTagName('li'); for(var i=0;i<items.length;i++){ items[i].index = i; items[i].onclick = function(){ this. 阅读全文
posted @ 2018-01-12 11:16 joker_xd 阅读(2226) 评论(0) 推荐(0) 编辑