03 2021 档案

摘要:一、介绍 盒子模型主要有四部分:内容(content)、内边距(padding)、边框(border)和 外边距(margin)组成。 盒子模型主要分为两种:标准盒子模型、 IE盒子模型 二、两者区别 区别在于: 标准盒子模型的width和height属性的值对应的是content的值,盒子的宽和高 阅读全文
posted @ 2021-03-22 15:17 console.log('宇航') 阅读(76) 评论(0) 推荐(0)
摘要:1、原型链继承 function A(name) { this.name = name } A.prototype.getName = function() { return this.name } function B() { this.bName = "L" } B.prototype = ne 阅读全文
posted @ 2021-03-10 12:05 console.log('宇航') 阅读(136) 评论(0) 推荐(0)