總結:
- window.pageYOffset 頁面被捲去頭部
- e.clientX e.pageX e.screenX
- e.clientLeft e.pageLeft e.scrollLeft (top)
- offsetLeft (top)
- mousedown mousemove mouseup
- touchstart touchmove touchend
- element.classListadd(’’) element.classListremove(’’) element.toggle(’’)
- transitionend
- offsetWidth(整個盒子) clientWidth(不含border) scrollWidth(內容content) (Height)
<meta name="viewport" content="user-scalable=no">
- window.scroll(0,0); (返回頂部)
1. JavaScript篇
- swiper的監測是第幾頁的回調函數
- 淘寶 flexible.js 源碼分析
- mouseenter 和 mouseover的區別
- animation動畫封裝函數(js小案例)
- 淘寶固定側邊欄(js小案例)
- PC端網頁特效學習目標(作爲學習筆記)
- 移動端、pc端拖動元素移動
- 移動端特效