随笔分类 -  移动端特效和事件

摘要:案例代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docu 阅读全文
posted @ 2020-06-08 10:44 EricBlog 阅读(281) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-08 10:29 EricBlog 阅读(89) 评论(0) 推荐(0)
摘要:案例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docume 阅读全文
posted @ 2020-06-08 10:27 EricBlog 阅读(297) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-08 10:01 EricBlog 阅读(147) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-08 09:35 EricBlog 阅读(433) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-06-08 09:16 EricBlog 阅读(59) 评论(0) 推荐(0)
摘要:https://www.swiper.com.cn/usage/index.html 引入 css 和 js 文件 使用方法简介 https://www.swiper.com.cn/usage/index.html 阅读全文
posted @ 2020-06-08 09:07 EricBlog 阅读(297) 评论(0) 推荐(0)
摘要:// <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-eq 阅读全文
posted @ 2020-06-07 22:06 EricBlog 阅读(208) 评论(0) 推荐(0)
摘要:// 返回顶部模块制作 var goBack = document.querySelector('.goBack'); var nav = document.querySelector('nav'); window.addEventListener('scroll', function() { if 阅读全文
posted @ 2020-06-07 21:52 EricBlog 阅读(165) 评论(0) 推荐(0)
摘要:案例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docume 阅读全文
posted @ 2020-06-07 20:58 EricBlog 阅读(107) 评论(0) 推荐(0)
摘要:var div = document.querySelector('div'); div.addEventListener('touchstart', function() { console.log('触摸'); }); div.addEventListener('touchmove', func 阅读全文
posted @ 2020-06-07 20:44 EricBlog 阅读(140) 评论(0) 推荐(0)