摘要:
盒子垂直居中的方法 1.img的垂直居中 { display:table-cell; text-align:center; vertical-align:middle; } 2.重写容器的align-items属性 .father{display:flex}.son{align-self:cente 阅读全文
posted @ 2021-11-15 21:51
安逸cosmos
阅读(62)
评论(0)
推荐(0)
摘要:
继承 //父类function Person(name){//给构造函数添加了参数 this.name=name; this.son=function(){ alert(this.name) }}Person.prototype.age=10;//给构造函数添加了原型属性 1)原型链继承:让新实例的 阅读全文
posted @ 2021-11-15 21:45
安逸cosmos
阅读(44)
评论(0)
推荐(0)