上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: sticky footer布局:当头部区块和内容区块内容较少时,页脚能固定在屏幕的底部,而非随着文档流排布;当页面内容较多时,页脚能随着文档流自动撑开,显示在页面的最底部 使用flex布局实现 .wrapper { display: flex; flex-direction: column; ove 阅读全文
posted @ 2021-12-21 17:23 Mr、DIVE 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 关于Linux fontconfig 字体库的坑 - Done、 - 博客园 (cnblogs.com) 阅读全文
posted @ 2021-12-14 15:12 Mr、DIVE 阅读(172) 评论(0) 推荐(0) 编辑
摘要: //IIFE(立即调用函数表达式) let asd = (function(){ let a = 1; return a; })(); console.log(asd); IIFE( 立即调用函数表达式)是一个在定义时就会立即执行的 JavaScript 函数。 (function () { sta 阅读全文
posted @ 2021-12-13 10:31 Mr、DIVE 阅读(46) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <style type="text/css"> h1 {text-transform: uppercase} p.uppercase {text-transform: uppercase} p.lowercase {text-transform: lowercase} p 阅读全文
posted @ 2021-12-13 10:24 Mr、DIVE 阅读(154) 评论(0) 推荐(0) 编辑
摘要: yingnian/Yahoo-35: 前端优化-雅虎军规35条 (github.com) 阅读全文
posted @ 2021-12-01 15:52 Mr、DIVE 阅读(12) 评论(0) 推荐(0) 编辑
摘要: cursor: pointer; justify-content: center; align-items: center; display: flex !important; 阅读全文
posted @ 2021-11-25 15:49 Mr、DIVE 阅读(108) 评论(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 阅读(69) 评论(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 阅读(64) 评论(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 阅读(19) 评论(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 阅读(100) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页