会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
木头小屋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
16
下一页
2022年1月21日
calc 用法
摘要: 今天再使用calc时发现无法生效,我的写法是: width: calc(100%-100px); 复制代码 页面无效果,加空格后就发现有效果了: width: calc(100% - 100px);
阅读全文
posted @ 2022-01-21 13:11 木头小屋
阅读(71)
评论(0)
推荐(0)
2021年12月22日
项目模板
摘要: https://github.com/ynzy?tab=repositories
阅读全文
posted @ 2021-12-22 14:33 木头小屋
阅读(18)
评论(0)
推荐(0)
2021年12月21日
带#获取地址栏参数
摘要: 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 木头小屋
阅读(95)
评论(0)
推荐(0)
2021年12月3日
多列布局方式
摘要: .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 木头小屋
阅读(41)
评论(0)
推荐(0)
2021年11月5日
react memo useSelector
摘要: 当props参数变化时组件才发生更改 const ImplicitSnowy = React.memo(props ⇒ ( implicit memoized component )); useSelector() const result : any = useSelector(selector
阅读全文
posted @ 2021-11-05 17:21 木头小屋
阅读(391)
评论(0)
推荐(0)
开发规范及Map了解
摘要: 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 木头小屋
阅读(67)
评论(0)
推荐(0)
vue 后台管理rem自适应
摘要: vue.config.js css: { loaderOptions: { postcss: { plugins: [ require('postcss-px2rem')({ remUnit: 192 }) ] } }, }, flexable.js (function(win, lib) { va
阅读全文
posted @ 2021-11-05 09:35 木头小屋
阅读(376)
评论(0)
推荐(0)
2021年10月20日
前端新闻
摘要: https://github.com/tnfe/TNT-Weekly/
阅读全文
posted @ 2021-10-20 17:37 木头小屋
阅读(21)
评论(0)
推荐(0)
2021年10月13日
css pc 移动端样式初始化
摘要: 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 木头小屋
阅读(117)
评论(0)
推荐(0)
常见的js函数封装
摘要: 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 木头小屋
阅读(77)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
16
下一页
公告