随笔分类 - Html问题
摘要:animation||@keyframes(动画)使用 <view class="left_box" v-if="time!=0"> <view class="left_item"></view> </view> </view> <style> .box { /* 最外层的盒子 */ width:
阅读全文
摘要:前端css中animation的使用 一、前言 animation常伴随着[动画帧]@keyframes一起使用。本文主要说明animation都有啥属性,然后简单的进行使用。 二、主要内容说明animation动画有多个属性,每个属性也有相应相关的值。另外我们使用过程中也可以使用简便方法,如“an
阅读全文
摘要:【背景小记】 el-table的el-table-column如果不指定width的话,会自动设定一个宽度,表格内容会自动换行,对强迫症用户来说非常不友好,为了追求完美用户体验,所以这里需要实现两个效果: 强制表格内容不换行显示 实现表格列宽自适应撑开 <template> <el-table re
阅读全文
摘要:如果vscode安装了vetur插件之后,shift+Alt+F又无法格式化vue文件代码。解决办法:打开文件 > 首选项 > 设置,搜索 vetur.format.defaultFormatter.html后将none替换勾选为js-beautify-html
阅读全文
摘要:js数学函数: 1、三次方函数 Math.pow() 2、绝对值函数 Math.abs(a,b):a为要操作的数,b决定取几次方 3、向上取整 Math.ceil() 4、向下取整 Math.floor() 5、四舍五入 Math.round() 6、找最大值 Math.max() 7、找最小值 M
阅读全文
摘要:var(--status-bar-height)、var(--window-top)、var(--window-bottom), .top { /* #ifdef H5 */ top: var(--window-top); /* #endif */ top: 0; } .bottom { /* #i
阅读全文
摘要:对象数组中找数据List.find((value)=>value.name=值).列名 //例如 list.find((value)=>value.id='1').name 数组中是否存在该数据List.findIndex( item => item.id ==值)) //如果在该数组中有数据则>0
阅读全文
摘要:this.aTimer = new System.Timers.Timer(); // // aTimer // this.aTimer.AutoReset = false;//是否重复执行 this.aTimer.Interval = 300;//设定时间 this.aTimer.Synchron
阅读全文
摘要:三、vue项目打包 使用npm run build命令进行打包,会成功一个dist目录,如图所示: auto 默认。浏览器设置的光标。crosshair 光标呈现为十字线。pointer 光标呈现为指示链接的指针(一只手)mov
阅读全文
摘要:$("i").css("pointer-events","none");
阅读全文