摘要:
16、元素占满整个屏幕 heigth如果使用100%,会根据父级的高度来决定,所以使用100vh单位。 .dom{ width:100%; height:100vh; } 17、CSS实现文本两端对齐 .wrap { text-align: justify; text-justify: distri 阅读全文
摘要:
1、文字超出部分显示省略号 单行文本的溢出显示省略号(一定要有宽度) p{ width:200rpx; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } 多行文本溢出显示省略号 p { display: -webkit- 阅读全文
摘要:
1、输入一个值,返回其数据类型** function type(para) { return Object.prototype.toString.call(para) } 2、数组去重 function unique1(arr) { return [...new Set(arr)] } functi 阅读全文