摘要: (1) Css样式提供了运动 过渡的属性transition 从一种情况到另一种情况叫过渡 Transition:attr time linear delay; Attr 是变化的属性 Time 是花费的时间 Linear 变化的速度 Delay 是延迟 复习background:url() no- 阅读全文
posted @ 2018-11-19 19:23 李梓0701 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 面试题作用域 +function(){ console.log(a) var a=5; function a(){} console.log(a) function b(){} b=6 console.log(b) var c=d=b }() console.log(d) console.log(c 阅读全文
posted @ 2018-11-19 19:22 李梓0701 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.Js操作css样式 Div.style.width=”100px”.在div标签内我们添加了一个style属性,并设定 了width值。这种写法会给标签带来大量的style属性,跟实际项目是不符。 我们没有让css和html分离。 所以如果是为了获取css样式 window.getCompute 阅读全文
posted @ 2018-11-19 19:20 李梓0701 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 元素的属性 Div.attributes 是所有标签属性构成的数据集合 Div.classList 是所有class名构成的数组集合 在classList的原型链上看以看到add()和remove() (1) clientWidth/clientHeight 是我们设置的宽和高加上内边距(没有边框) 阅读全文
posted @ 2018-11-19 19:19 李梓0701 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1.轮播图 案例 2.定时器this问题 var t=setInterval(function(){ console.log(this) },1000) 这里面的this是window Person.prototype={ fn:function(){ console.log(this) }, n: 阅读全文
posted @ 2018-11-19 19:17 李梓0701 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Form input select textarea type=”radio/checkbox/password/button/text/submit/reset/” 表单的事件 onchange 当表单内容被修改时触发的事件 onfocus 获取焦点事件 onblur 失去焦点事件 表单里的内容用 阅读全文
posted @ 2018-11-19 19:15 李梓0701 阅读(143) 评论(0) 推荐(0) 编辑