会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
国服第二切图仔
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
2020年12月2日
[css3] nth-child 和 nth-of-type区别
摘要: 都是基于父级下面的元素 nth-child 基于父级下面的第N个元素,如果类型匹配则生效 nth-of-type 基于父级下面的第N个相同类型的元素 odd:奇数 even:偶数 n:变量 example <a/> <p/> <a/> a:nth-child(2) 不生效a:nth-of-type(
阅读全文
posted @ 2020-12-02 16:03 coffeemil
阅读(37)
评论(0)
推荐(0)
2020年11月25日
JavaScript原型链
摘要: __proto__是原型,原型链就是一直查找__proto__ ,直到返回值为null。 (new对象.__proto__.__proto__.__proto__) 返回值为null
阅读全文
posted @ 2020-11-25 21:10 coffeemil
阅读(61)
评论(0)
推荐(0)
2020年11月24日
BOM中的位置属性
摘要: clientX 以浏览器左上顶角为原点,定位 x 轴坐标clientY 以浏览器左上顶角为原点,定位y轴坐标offsetX 以当前事件的目标对象左上角为原点,定位x轴坐标offsetY 以当前事件的目标对象左上角为原点,定位y轴坐标pageX 以Document 对象(即文本窗口)左上角为原点,定位
阅读全文
posted @ 2020-11-24 23:03 coffeemil
阅读(145)
评论(0)
推荐(0)
2020年11月19日
Git使用方法
摘要: 指令注释 git init 初始化 git config --global user.name "姓名" 配置姓名 git config --global user.email "邮箱" 配置邮箱 git add ./ 添加到待提交 git commit -m "注释" 提交修改 git reset
阅读全文
posted @ 2020-11-19 21:44 coffeemil
阅读(86)
评论(0)
推荐(0)
2020年10月26日
[css] BFC规则以及解决方法
摘要: 一、什么是BFC? BFC是页面上的独立渲染区域 二、BFC产生规则 1、根标签(html) 2、float的值不为none 3、overflow的值不为visible 4、display的值为inline-block 5、position的值为absolute或fixed 三、BFC的特性 1、属
阅读全文
posted @ 2020-10-26 01:13 coffeemil
阅读(952)
评论(0)
推荐(0)
2020年10月21日
[css] 利用border制作三角型
摘要: 1、利用border边框的特性,使加boder边框的元素宽高都为0,因为外边设置太宽里面太窄,所以呈现出三角形状。 <html> <head> <style> .square{ width: 0px; height: 0px; border: 50px solid transparent; bord
阅读全文
posted @ 2020-10-21 23:45 coffeemil
阅读(154)
评论(0)
推荐(1)
上一页
1
···
5
6
7
8
9
公告