这个设计同样可以移植到任何网页设计中,无论是PC端还是移动端的网页,它可以让网页看起来更有设计感,让用户的视觉感官更加强烈。 先看效果 话不多说直接上代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta h…
滚动到页面顶部 const scrollToTop = () => { window.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }; 滚动到页面底部 const scrollToBottom = () => { window.scrollTo({ top: document.d…
0.前端自动化 前端构建工具 gulp–The streaming build system grunt–the JavaScript Task Runner 前端模块管理器 Bower–A package manager for the web Browserify Component Duo RequireJS Sea.js css预处理器 L…