上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 今天再使用calc时发现无法生效,我的写法是: width: calc(100%-100px); 复制代码 页面无效果,加空格后就发现有效果了: width: calc(100% - 100px); 阅读全文
posted @ 2022-01-21 13:11 木头小屋 阅读(63) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ynzy?tab=repositories 阅读全文
posted @ 2021-12-22 14:33 木头小屋 阅读(11) 评论(0) 推荐(0) 编辑
摘要: GetQueryString(name) { let reg = new RegExp("(|&)" + name + "=([&]*)(&|$)", "i"); if(window.location.hash.indexOf("?") < 0){ return null; } let r = wi 阅读全文
posted @ 2021-12-21 14:45 木头小屋 阅读(90) 评论(0) 推荐(0) 编辑
摘要: .box { display: flex; flex-wrap: wrap; justify-content: flex-start; } .box .box-item { width: 100px; margin-bottom: 10px; margin-right: 10px; } .box . 阅读全文
posted @ 2021-12-03 14:56 木头小屋 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 当props参数变化时组件才发生更改 const ImplicitSnowy = React.memo(props ⇒ ( implicit memoized component )); useSelector() const result : any = useSelector(selector 阅读全文
posted @ 2021-11-05 17:21 木头小屋 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 1.输入框限制字符 限制传空串 maxlength="200" show-word-limit @blur="rejectReason=$event.target.value.trim()" 2.列表多列排列 <div class="item item_block" > <div class="ce 阅读全文
posted @ 2021-11-05 09:42 木头小屋 阅读(61) 评论(0) 推荐(0) 编辑
摘要: vue.config.js css: { loaderOptions: { postcss: { plugins: [ require('postcss-px2rem')({ remUnit: 192 }) ] } }, }, flexable.js (function(win, lib) { va 阅读全文
posted @ 2021-11-05 09:35 木头小屋 阅读(368) 评论(0) 推荐(0) 编辑
摘要: https://github.com/tnfe/TNT-Weekly/ 阅读全文
posted @ 2021-10-20 17:37 木头小屋 阅读(13) 评论(0) 推荐(0) 编辑
摘要: pc-reset PC样式初始化 /* normalize.css */ html { line-height: 1.15; /* 1 / -ms-text-size-adjust: 100%; / 2 / -webkit-text-size-adjust: 100%; / 2 */ } body 阅读全文
posted @ 2021-10-13 16:13 木头小屋 阅读(108) 评论(0) 推荐(0) 编辑
摘要: var ecDo = { /字符串/ //去除空格 type 1-所有空格 2-前后空格 3-前空格 4-后空格 //trim(' 1235asd',1) //result:1235asd trim: function(str, type) { switch (type) { case 1: ret 阅读全文
posted @ 2021-10-13 16:11 木头小屋 阅读(70) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页