晴明的博客园 GitHub      CodePen      CodeWars     
摘要: 目前只有chrome浏览器支持 高度设置似乎是无效的 cursor: pointer; 似乎也是无效的 阅读全文
posted @ 2016-02-18 21:53 晴明桑 阅读(298) 评论(0) 推荐(0) 编辑
摘要: # # # #一般移动动画的实现 #数组分块 array chunking (yielding processes) #函数节流,防止连续重复操作 # 阅读全文
posted @ 2016-02-18 18:02 晴明桑 阅读(227) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <style type="text/css"> .arrow { width: 0; height: 0; font-size: 0; border: solid 10px #000; } .arrow2 { width: 0; height: 0; font-size: 阅读全文
posted @ 2016-02-18 16:01 晴明桑 阅读(849) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Touch</title> <meta name="viewport" content="width=device-width, user-scalable=no"> </head 阅读全文
posted @ 2016-02-18 13:53 晴明桑 阅读(1956) 评论(0) 推荐(0) 编辑
摘要: console.log(document.body.scrollHeight); var a = document.body.scrollHeight; window.addEventListener("scroll", function(event) { var scrollTop = docum 阅读全文
posted @ 2016-02-18 11:05 晴明桑 阅读(6107) 评论(0) 推荐(1) 编辑
摘要: window.addEventListener('wheel', function(event) { //或mousewheel。但是他们都不兼容 firefox console.log(event.wheelDelta); //上 120,下 -120 }) window.addEventList 阅读全文
posted @ 2016-02-18 10:40 晴明桑 阅读(599) 评论(0) 推荐(1) 编辑