上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: $(window).on("scroll",function(){ var sctop=$(window).scrollTop(); if ($(window).scrollTop() >= $(document).height() -$(window).height()){ alert("到底了") } }) 阅读全文
posted @ 2018-01-24 13:59 \面朝阳光/ 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 由于CSS/JS文件经常需要改动,前端调试时是不希望浏览器缓存这些文件的。 Meta法 目前在chrome调试还没有遇到问题,好用!此方法假设浏览器是个好人!很听我们的话! 随机数法 Cache Buster 随机数法本身相当于渲染模板时添加版本号,在某些版本的浏览器,此法无效。此方法假设浏览器是个 阅读全文
posted @ 2018-01-23 10:19 \面朝阳光/ 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 你的浏览器不支持audio标签。--> #music { width: 0.8rem; height: 0.8rem; position: fixed; top: 0.2rem; right: 0.3rem; z-index: 9999; background-size: contain; text-align: center... 阅读全文
posted @ 2018-01-22 17:32 \面朝阳光/ 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 虽然很简单 也还是记录下, 插件方式 这些事很长多网站常见的小功能,不要觉得很简单,有时要用时直接copy ,还是省时间的 阅读全文
posted @ 2018-01-22 17:29 \面朝阳光/ 阅读(252) 评论(0) 推荐(0) 编辑
摘要: .colorful { /* -webkit-mask-image: linear-gradient(to right, red, orange, yellow, green, cyan, blue, purple); */ background-image: linear-gradient(to 阅读全文
posted @ 2018-01-22 15:26 \面朝阳光/ 阅读(130) 评论(0) 推荐(0) 编辑
摘要: /* ** 时间戳显示为多少分钟前,多少天前的处理 ** eg. ** console.log(dateDiff(1411111111111)); // 2014年09月19日 ** console.log(dateDiff(1481111111111)); // 9月前 ** console.log(dateDiff(1499911111111)); // 2月前 ** console.... 阅读全文
posted @ 2018-01-22 13:51 \面朝阳光/ 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: var gulp = require('gulp'), autoprefixer = require('gulp-autoprefixer'); gulp.task('testAutoFx', function () { gulp.src('src/css/index.css') .pipe(autoprefixer({ browser... 阅读全文
posted @ 2018-01-09 15:47 \面朝阳光/ 阅读(222) 评论(0) 推荐(0) 编辑
摘要: https://www.cssmatic.com/box-shadow 阅读全文
posted @ 2018-01-09 11:10 \面朝阳光/ 阅读(779) 评论(0) 推荐(0) 编辑
摘要: js分享 阅读全文
posted @ 2018-01-09 11:04 \面朝阳光/ 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 引入插件步骤 ①在HTML页面中添加 <script type='application/javascript' src='/path/to/fastclick.js'></script> 注:必须在页面所有Element之前加载脚本文件先实例化fastclick ②在JS中添加fastclick的 阅读全文
posted @ 2017-12-26 22:46 \面朝阳光/ 阅读(1067) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页