dandanyajin
今天更新博客了吗?
摘要: 要求列表的奇数行与单数行的背景颜色不同 li:nth-child(2n){ background: rgba(20,55,120,0.2) } 除了上述使用较多的情况,还有 // 第一行背景有颜色 li:first-child{ background: rgba(20,55,120,0.2) } / 阅读全文
posted @ 2022-05-06 10:11 dandanyajin 阅读(65) 评论(0) 推荐(0) 编辑
摘要: @font-face { font-family: 'ZKKH'; //重命名字体名 src: url('zkkh.ttf'); //引入字体 font-weight: normal; font-style: normal; } @font-face { font-family: 'DIN-Bold 阅读全文
posted @ 2022-05-05 10:30 dandanyajin 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 和风天气官网 选择自己需要的东西和样式,然后生成代码 根据生成代码,依次修改代码 就好啦 阅读全文
posted @ 2022-04-29 14:29 dandanyajin 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 项目中空状态要求用不同图片,想着封装一下 传图片地址时报错 props:{ imgSrc:{ typeof:String, default:()=>require('@/assets/image/noContent.png') } }, vite的锅,改为下面这种就好了 props:{ imgSrc 阅读全文
posted @ 2022-03-29 16:56 dandanyajin 阅读(602) 评论(0) 推荐(0) 编辑
摘要: graphic: [ { type: 'group', right: 0, top: 0, children: [ { type: 'rect', z: 100, left: 'center', top: 'middle', shape: { width: 50, height: 25 }, sty 阅读全文
posted @ 2022-03-24 09:28 dandanyajin 阅读(311) 评论(0) 推荐(0) 编辑
摘要: if ( event && event.stopPropagation ) { event.stopPropagation(); }else { window.event.cancelBubble = true; } if ( event && event.preventDefault ) { ev 阅读全文
posted @ 2022-03-22 14:36 dandanyajin 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 在写echarts下钻功能,发现点击事件有时触发一次有时触发多次 解决办法 myChart.off('click').on('click', function (event) {} 或者 myChart.off('click'); myChart.on('click', function (even 阅读全文
posted @ 2022-03-22 14:34 dandanyajin 阅读(638) 评论(0) 推荐(0) 编辑
摘要: { title: { text: '暂无数据', x: 'center', y: 'center', textStyle: { color: '#ccc', fontWeight: 'normal', fill: '#9d9d9d', fontWeight: 'bold', text: '暂无数据' 阅读全文
posted @ 2022-03-18 11:34 dandanyajin 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: 在使用递归时,出现了一些问题。 正常走完循环赋值正确后,会莫名其妙回到for这行代码,xdata,ydata会再次变为null,直接走到return recursion(drilldownList,name){ var xdata = null var ydata = null for(var i 阅读全文
posted @ 2022-03-16 14:02 dandanyajin 阅读(66) 评论(0) 推荐(0) 编辑
摘要: box-sizing 默认属性为 content-box (标准盒模型),它的width和height 是 元素内容的宽和高; border-box (怪异盒模型),它的width和height 是 元素内容+内边距+边框; inherit 从父元素继承。 两种模式下如何解决样式的兼容性问题: 不要 阅读全文
posted @ 2021-12-16 16:41 dandanyajin 阅读(94) 评论(0) 推荐(0) 编辑