摘要: 摘自:https://www.cnblogs.com/theblogs/p/10328514.html 摘自:https://www.jianshu.com/p/1749766fd97a 摘自:https://blog.csdn.net/qq_34123985/article/details/905 阅读全文
posted @ 2019-11-13 17:06 林玖女神 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.伪类清除浮动: .clear::after{ content: ""; display: block; clear: both; visibility: hidden; height: 0; } .clear::after{ zoom: 1; } 2. 对于父元素固定高度,子元素浮动,则可以使用 阅读全文
posted @ 2019-11-13 16:51 林玖女神 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1.单行文本溢出变略号 overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 2.多行文本溢出变省略号 overflow:hidden;text-overflow:ellipsis; display:-webkit-box; - 阅读全文
posted @ 2019-11-13 16:45 林玖女神 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.先画一个正方形,启发一下如何画上三角、下三角、左三角以及右三角。 <div class="square"></div> .square{ width: 0; height: 0; border-width: 100px; border-style: solid; border-color:#FF 阅读全文
posted @ 2019-11-13 16:20 林玖女神 阅读(210) 评论(0) 推荐(0) 编辑
摘要: (一)apply()和call()的区别 apply接受两个参数,第一个参数指定了函数体内this对象的指向,第二个参数为一个带下标的集合,这个集合可以为数组,也可以为类数组, apply方法把这个集合中的元素作为参数传递给被调用的函数。 let func = function(a,b,c){ co 阅读全文
posted @ 2019-11-13 15:37 林玖女神 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 原文摘自:https://www.cnblogs.com/gwf93/p/10384352.html 先写一个父类Car function Car(name){ this.name = name; this.driver = function (){ console.log('日行千里') } } 阅读全文
posted @ 2019-11-13 11:44 林玖女神 阅读(188) 评论(0) 推荐(0) 编辑