摘要: $(this).stop().slideToggle(); 阅读全文
posted @ 2017-08-06 17:30 教父123 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 在jquery之后引用, $(function(){//ul/li的折叠效果 FastClick.attach(document.body); ...... }); 阅读全文
posted @ 2017-08-06 17:28 教父123 阅读(118) 评论(0) 推荐(0) 编辑
摘要: $(window).scroll(function () { var scrollH = window.screen.height; if ($(window).scrollTop() > scrollH) { $("#mob_backTop").fadeIn(60);// console.log( 阅读全文
posted @ 2017-08-06 17:23 教父123 阅读(182) 评论(0) 推荐(0) 编辑
摘要: function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = 阅读全文
posted @ 2017-08-06 17:22 教父123 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Windows下的Nodejs npm路径是appdata,很不爽,想改回来,但是在cmd下执行以下命令也无效 npm config set cache "D:\nodejs\node_cache" npm config set prefix "D:\nodejs\node_global" 最后在n 阅读全文
posted @ 2017-07-26 15:55 教父123 阅读(3522) 评论(0) 推荐(0) 编辑
摘要: a标签 download target 阅读全文
posted @ 2017-07-11 10:27 教父123 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1、利用device-pixel-ratio 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 //元素正常设置borde 阅读全文
posted @ 2017-07-09 00:41 教父123 阅读(388) 评论(0) 推荐(0) 编辑
摘要: .S .example { /* 移动端的样式 */ } if (window.SIZE == 'S') { // 移动端的处理 } else { // 桌面端的处理 }本文出自:http://www.zhangxinxu.com/wordpress/?p=5416 阅读全文
posted @ 2017-07-06 16:43 教父123 阅读(331) 评论(0) 推荐(0) 编辑
摘要: if((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS 阅读全文
posted @ 2017-07-06 16:32 教父123 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域高宽为:document.body.clientHeight||document.body.clientWidth 网页正文的区域高宽为:document.body.scrollHeight||document.body.scrollWidth(包括滚轮的长度) 网页被卷去的上左区域:d 阅读全文
posted @ 2017-07-06 15:44 教父123 阅读(388) 评论(0) 推荐(0) 编辑