摘要: 转自http://www.zreading.cn/ican/2014/10/css-font-family/ 例1(小米米官网):font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif; 例2(淘宝技术研发中心):font: 12px/ 阅读全文
posted @ 2020-04-22 15:58 justsilky 阅读(431) 评论(0) 推荐(0)
摘要: http://via.placeholder.com/500x200 阅读全文
posted @ 2020-03-30 14:27 justsilky 阅读(106) 评论(0) 推荐(0)
摘要: window.location.href = document.referrer; 阅读全文
posted @ 2020-03-30 14:19 justsilky 阅读(150) 评论(0) 推荐(0)
摘要: eruda,vconsole 阅读全文
posted @ 2020-03-23 14:32 justsilky 阅读(98) 评论(0) 推荐(0)
摘要: chrome中的input不要加type=”number”,有问题,输入负号截取到第一个字符串是空,就默认text就行 若允许负数加上allowMinus类,正数只加limitNumber 以下可以封装成函数,加到DOM上的οnkeyup=foo(this) $(document).on('keyu 阅读全文
posted @ 2020-03-13 15:37 justsilky 阅读(192) 评论(0) 推荐(0)
摘要: transform作用的元素增加translateZ,父级元素增加 transform-style: preserve-3d; 阅读全文
posted @ 2019-12-02 18:14 justsilky 阅读(1141) 评论(0) 推荐(0)
摘要: var winHeight = window.innerHeight ? window.innerHeight : $(window).height(); var scrollToBottomFlag = false; $(window).scroll(function() { scrollToBottomFlag = ($(window).scrollTop() + winHeight > $( 阅读全文
posted @ 2019-11-13 11:13 justsilky 阅读(374) 评论(0) 推荐(0)
摘要: 通过cmd命令控制台关闭已经打开的端口号 在出现的窗口里面输入 netstat -ano, 就会出现所有的端口号, Local Address下面的是端口号, PID就是某程序占用的进程号, 这个进程号先记下来 打开任务管理器选择详细信息找到对应的进程->单击右键->结束任务 通过cmd命令控制台关 阅读全文
posted @ 2019-11-12 14:24 justsilky 阅读(673) 评论(0) 推荐(0)
摘要: https://www.hangge.com/blog/cache/detail_2144.html# 阅读全文
posted @ 2019-09-29 13:55 justsilky 阅读(151) 评论(0) 推荐(0)
摘要: jQuery的父,子,兄弟节点查找方法 jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(exp 阅读全文
posted @ 2019-09-27 10:32 justsilky 阅读(2719) 评论(0) 推荐(0)