摘要: npm install archiver var zipper = require("zip-local"); zipper.sync.zip("/Users/xxx/xx/xx").compress().save("/Users/xxx/xx/xx.zip"); 阅读全文
posted @ 2018-09-19 16:54 趴着睡 阅读(992) 评论(0) 推荐(0)
摘要: css实现单行溢出隐藏 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; js实现多行溢出隐藏 <dd class="user_star_dd"><p>你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你 阅读全文
posted @ 2018-09-19 10:28 趴着睡 阅读(174) 评论(0) 推荐(0)
摘要: * { touch-action: pan-y; } 阅读全文
posted @ 2018-09-12 15:05 趴着睡 阅读(134) 评论(0) 推荐(0)
摘要: white-space:normal; word-break:break-all; 阅读全文
posted @ 2018-07-30 10:02 趴着睡 阅读(541) 评论(0) 推荐(0)
摘要: #div{ width:100%; height:380px; overflow-y: auto; -webkit-box-sizing: border-box; box-sizing: border-box; padding:14px; } #div::-webkit-scrollbar {/*滚 阅读全文
posted @ 2018-07-25 10:58 趴着睡 阅读(96) 评论(0) 推荐(0)
摘要: function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if ( 阅读全文
posted @ 2018-07-25 10:53 趴着睡 阅读(118) 评论(0) 推荐(0)
摘要: html <div class="file"> <label for="file">文件:</label> <div class="userdefined-file"> <input type="text" name="userdefinedFile" id="userdefinedFile" va 阅读全文
posted @ 2018-06-20 11:26 趴着睡 阅读(140) 评论(0) 推荐(0)
摘要: for(var i=first;i<=last,i+=24*3600*1000){ var d = new Date(i); if(d.getDay() >= 1 && d.getDay() <= 5){ count++; }} 阅读全文
posted @ 2018-04-28 11:32 趴着睡 阅读(323) 评论(0) 推荐(0)
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth(包括边线的宽)网页可见区域高:document.body.offsetHeight(包括边线的宽) 阅读全文
posted @ 2018-04-28 11:27 趴着睡 阅读(348) 评论(0) 推荐(0)
摘要: 问题 当一个定义了宽度的块状元素中填充的全部为纯英文或者纯数字的时候,在IE和FF中都会撑大容器,不会自动换行并且当数字或者英文中带有汉字时,会从汉字处换行,而纯汉字却可以自动换行。这个问题如何解决?先来认识一下两位主角word-wrap和word-break 解决方法 可以在CSS中加入 word 阅读全文
posted @ 2018-04-28 11:25 趴着睡 阅读(305) 评论(0) 推荐(0)