上一页 1 ··· 8 9 10 11 12
摘要: border 1px solid #000 值1 边框宽度 值2 边框样式 dotted: 定义一个点线边框 dashed: 定义一个虚线边框 solid: 定义实线边框 double: 定义两个边框。 两个边框的宽度和 border-width 的值相同 groove: 定义3D沟槽边框。效果取决 阅读全文
posted @ 2020-07-09 15:32 web格调 阅读(1113) 评论(0) 推荐(0) 编辑
摘要: 单行内容溢出显示省略号 overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 多行文本溢出隐藏显示省略号 display: -webkit-box; -webkit-box-orient: vertical; -webkit-l 阅读全文
posted @ 2020-07-06 16:12 web格调 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1.static 目录下的 js 文件不会被编译,如果里面有 es6 的代码,不经过转换直接运行,在手机设备上会报错。 2.css、less/scss 等资源同样不要放在 static 目录下,建议这些公用的资源放在 common 目录下。 3.template内引入静态资源,如image、vide 阅读全文
posted @ 2020-07-04 11:04 web格调 阅读(879) 评论(0) 推荐(0) 编辑
摘要: text-decoration:underline; 下划线 text-decoration:overline; 顶划线 text-decoration:line-through; 删除线 阅读全文
posted @ 2020-07-03 16:10 web格调 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 防抖 function debounce(fn,delay){ let timer = null //借助闭包 return function() { if(timer){ clearTimeout(timer) //进入该分支语句,说明当前正在一个计时过程中,并且又触发了相同事件。所以要取消当前的 阅读全文
posted @ 2020-07-03 14:22 web格调 阅读(262) 评论(0) 推荐(0) 编辑
摘要: window.onresize = function(e){ } 阅读全文
posted @ 2020-07-03 14:13 web格调 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.Array.isArray() 用来判断是否为数组,可以弥补typeof运算符的不足 2.valueOf() 返回数组的原始值(一般情况下其实就是数组自身) 3.toString() 返回数组的字符串形式 4.indexOf() 返回指定元素在数组中第一次出现的位置,没有返回-1 5.lastI 阅读全文
posted @ 2020-07-03 09:35 web格调 阅读(851) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12