摘要: 导航固定 参考 原生js实现随着滚动条滚动,导航会自动切换的效果 具体项目参考文件1111.zip 阅读全文
posted @ 2019-06-02 17:08 漫天风沙 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 参考 for循环中嵌套setTimeout,执行顺序和结果该如何理解? 阅读全文
posted @ 2019-05-30 11:30 漫天风沙 阅读(2335) 评论(0) 推荐(0) 编辑
摘要: 1、轮播添加无限循环 需要在 .mui-slider-group节点上增加.mui-slider-loop类 2、web移动端侧滑与滑动同时存在 参考https://segmentfault.com/q/1010000005784640 3、a标签链接失效,增加监听事件 // 监听tap事件,解决 阅读全文
posted @ 2019-04-29 14:25 漫天风沙 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 获取文本内容 阅读全文
posted @ 2019-02-27 09:35 漫天风沙 阅读(5539) 评论(0) 推荐(0) 编辑
摘要: 一、Css 二、div 三、JavaScript 引用jQuery.js<script> 四、 阅读全文
posted @ 2019-02-15 15:03 漫天风沙 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 一个页面也就只允许出现一个h1标签。内容页文章的标题,是seo中使用最多的地方,基本的文章页面标题都是使用h1标签。一、<h1>用来修饰网页的主标题,一般是网页的标题 ,文章标题,<h1>中部署主关键词。<h1>尽量靠近在html 中的<body>标签,越近越好,以便让搜索引擎最快的领略主题。 二、 阅读全文
posted @ 2019-01-03 09:44 漫天风沙 阅读(185) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $(".classify dl dd").mouseover(function(){ $(this).addClass("on"); $(this).children("ul").show(); }) }) // 关键二:正确使用jQuey的语法完成行为。 $(function(){ $(".classify dl dd") ... 阅读全文
posted @ 2018-12-28 09:52 漫天风沙 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Javascript: 网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.off 阅读全文
posted @ 2018-12-12 15:18 漫天风沙 阅读(13302) 评论(0) 推荐(0) 编辑
摘要: html按钮 css显示隐藏样式 js部分 阅读全文
posted @ 2018-12-11 15:11 漫天风沙 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 方法一: 方法二: 阅读全文
posted @ 2018-12-11 10:21 漫天风沙 阅读(715) 评论(0) 推荐(0) 编辑