11 2021 档案

摘要:cursor: pointer; justify-content: center; align-items: center; display: flex !important; 阅读全文
posted @ 2021-11-25 15:49 Mr、DIVE 阅读(133) 评论(0) 推荐(0)
摘要:转载保存; (16条消息) 十几个CSS高级常见技巧汇总(虚线框、三角形、优惠券卡券、滚动条、多行溢出...)_前端仙人的博客-CSDN博客 阅读全文
posted @ 2021-11-23 10:39 Mr、DIVE 阅读(52) 评论(0) 推荐(0)
摘要://写一个方法判断字符串是否为回文字符串 function getMaxMin() { let a = "s a d a s a" //实现思路,不考虑大小写的情况下,先转换成小写,然后用空格split分格数组,再通过数组的reverse转换顺序,再用join链接 let b = a.replace 阅读全文
posted @ 2021-11-18 09:35 Mr、DIVE 阅读(76) 评论(0) 推荐(0)
摘要:function getMaxMin() { //js的apply语法 let asd = [1,2,3,4,5,6]; console.log(Math.max.apply(Array,[1,2,3,4,5,6])); //es6语法 let asd2 = [1,2,3,4,5,6]; conso 阅读全文
posted @ 2021-11-16 16:32 Mr、DIVE 阅读(81) 评论(0) 推荐(0)
摘要:function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); } console.log(getLocalTime(1636387199)); 阅读全文
posted @ 2021-11-16 15:57 Mr、DIVE 阅读(36) 评论(0) 推荐(0)
摘要:选择器案例权重值 !important !important Infinity 内联样式 style=".." 1000 ID #id 100 class .class 10 属性 [type='text'] 10 伪类 :hover 10 标签 p 1 伪元素 ::first-line 1 相邻选 阅读全文
posted @ 2021-11-16 15:53 Mr、DIVE 阅读(114) 评论(0) 推荐(0)