摘要:
css: .hide{display: none;} .item{display: inline-block;cursor: pointer;padding: 0 20px;} .inl{display: inline-block;} .rotate-1{-webkit-animation: rot 阅读全文
摘要:
// 网页可见区域宽: document.body.clientWidth;// 网页可见区域高: document.body.clientHeight;// 网页可见区域宽: document.body.offsetWidth (包括边线的宽);// 网页可见区域高: document.body. 阅读全文
摘要:
//Method-1: var items = document.getElementsByTagName('li'); for(var i=0;i<items.length;i++){ items[i].index = i; items[i].onclick = function(){ this. 阅读全文