会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
carrie
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2018年10月11日
css透明边框实现
摘要: 代码: 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
阅读(690)
评论(0)
推荐(0)
2018年10月10日
css颜色 hsla 和line-gradient
摘要: h 表示色调 从0-360 s 饱和度 0 - 100% l 亮度 0 -100% a 透明度 0-1
阅读全文
posted @ 2018-10-10 17:51 carrieLee
阅读(292)
评论(0)
推荐(0)
2018年10月8日
html5 知识总结
摘要: 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
阅读(264)
评论(0)
推荐(0)
2018年9月21日
移动端,点击a标签链接的pdf报错 Resource interpreted as Document but transferred with MIME type application/pdf
摘要: 源码: <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
阅读(9987)
评论(0)
推荐(0)
2018年9月14日
vue-用Vue-cli从零开始搭建一个Vue项目
摘要: 准备工作 1、下载安装Node.js 下载地址:https://nodejs.org/en/download/ ,选择合适自己的版本下载即可。 具体怎么安装Node.js就不用具体说明了,安装Node.js会默认安装npm(包管理工具)。 2、启用cmd 按下Windows+R,在打开的“运行”程序
阅读全文
posted @ 2018-09-14 10:57 carrieLee
阅读(588)
评论(0)
推荐(0)
js学习笔记
摘要: 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
阅读(146)
评论(0)
推荐(0)
2018年9月6日
css居中那些事
摘要: 一、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
阅读(389)
评论(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
阅读(350)
评论(0)
推荐(0)
2018年8月21日
数组去重
摘要: 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
阅读(101)
评论(0)
推荐(0)
2018年8月9日
统计字符中中字符出现的次数
摘要: 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
阅读(138)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告