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