摘要: 代码: css: .box1{ background: black; padding:20px; } .box2{ background: #fff; border: 10px solid hsla(0,0%,100%,.5); color:red; background-clip: padding 阅读全文
posted @ 2018-10-11 15:34 carrieLee 阅读(679) 评论(0) 推荐(0) 编辑
摘要: h 表示色调 从0-360 s 饱和度 0 - 100% l 亮度 0 -100% a 透明度 0-1 阅读全文
posted @ 2018-10-10 17:51 carrieLee 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Meta基础知识: H5页面窗口自动调整到设备宽度,并禁止用户缩放页面 //一、HTML页面结构<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1. 阅读全文
posted @ 2018-10-08 10:50 carrieLee 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 源码: <a href="11.pdf" class="actcont_a fl report_a" style="display: block;"> </a> 解决方案: <a href="11.pdf" class="actcont_a fl report_a" style="display: 阅读全文
posted @ 2018-09-21 17:37 carrieLee 阅读(9905) 评论(0) 推荐(0) 编辑
摘要: 准备工作 1、下载安装Node.js 下载地址:https://nodejs.org/en/download/ ,选择合适自己的版本下载即可。 具体怎么安装Node.js就不用具体说明了,安装Node.js会默认安装npm(包管理工具)。 2、启用cmd 按下Windows+R,在打开的“运行”程序 阅读全文
posted @ 2018-09-14 10:57 carrieLee 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 1.通过valueOf方法判断Boolean对象实例的初始值 function newBool(){ var boolFlag=new Boolean('false'); console.log(boolFlag.valueOf()); } 注:值为0,空,false都为false toString 阅读全文
posted @ 2018-09-14 10:24 carrieLee 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 一、css垂直居中 1.line-height(适用于单行文本居中) eg: html:<p class="wordp">123</p>- css: .wordp{width:100px;line-height:50px;background:yellow;color:#fff} 2.:befor+ 阅读全文
posted @ 2018-09-06 15:09 carrieLee 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 一、圣杯布局(两边固定,中间自适应) html: <div class="container"> <div class="middle">middle</div> <div class="left">left</div> <div class="right">right</div> </div> c 阅读全文
posted @ 2018-09-06 10:41 carrieLee 阅读(348) 评论(0) 推荐(0) 编辑
摘要: var arr1=[1,2,3,'1','aa',22,1]; var attr2=[]; for(var i=0;i<arr1.length;i++){ if(arr2.indexOf(arr1(i))<0){ arr2.push(arr1[i]);} } 阅读全文
posted @ 2018-08-21 17:02 carrieLee 阅读(90) 评论(0) 推荐(0) 编辑
摘要: var str="acdeabstvgsdte"; var total=new Object(); if(str){ for( var i=0;i<str.length;i++){ total[str[i]]=(total(str[i])+1) || 1;或者 (total[str[i]] + 1) 阅读全文
posted @ 2018-08-09 23:32 carrieLee 阅读(135) 评论(0) 推荐(0) 编辑