上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 40 下一页
摘要: 1. 绑定事件的兼容 function addEventListener(element,type,fn) { if(element.addEventListener){ element.addEventListener(type,fn,false); }else if(element.attach 阅读全文
posted @ 2019-12-10 15:59 jane_panyiyun 阅读(351) 评论(0) 推荐(1)
摘要: 解绑事件 注意:用什么方式绑定事件, 就应该用对应的方式解绑事件 1.解绑事件 对象.on事件名字=事件处理函数 >绑定事件 对象.on事件名字=null; //1 对象.on事件名字=事件处理函数 绑定事件 my$("btn").onclick = function () { console.lo 阅读全文
posted @ 2019-12-10 15:34 jane_panyiyun 阅读(599) 评论(0) 推荐(2)
摘要: 总结绑定事件的区别: addEventListener(); attachEvent() 相同点: 都可以为元素绑定事件 不同点: 1.方法名不一样 2.参数个数不一样addEventListener三个参数,attachEvent两个参数 3.addEventListener 谷歌,火狐,IE11 阅读全文
posted @ 2019-12-10 14:59 jane_panyiyun 阅读(253) 评论(0) 推荐(1)
摘要: part4 课程介绍 事件 1. 绑定事件的区别 2. 移除绑定事件的方式及区别和兼容代码 3. 事件的三个阶段 4. 事件冒泡 5. 为同一个元素绑定多个不同的事件,指向的是同一个事件处理函数 6. 百度的大项目 7. BOM 8. 定时器 9. DOM加强,多个几个好玩的案例 part3 复习 阅读全文
posted @ 2019-12-10 14:27 jane_panyiyun 阅读(264) 评论(0) 推荐(0)
摘要: Sometimes the flex items within a flex container do not fill all the space in the container. It is common to want to tell CSS how to align and space o 阅读全文
posted @ 2019-12-08 22:27 jane_panyiyun 阅读(293) 评论(0) 推荐(0)
摘要: The tweet embed header and footer used the flex-direction property earlier with a row value. Similarly, the items inside the .profile-name element wou 阅读全文
posted @ 2019-12-08 22:12 jane_panyiyun 阅读(190) 评论(0) 推荐(0)
摘要: The last two challenges used the flex-direction property set to row. This property can also create a column by vertically stacking the children of a f 阅读全文
posted @ 2019-12-08 22:09 jane_panyiyun 阅读(215) 评论(0) 推荐(0)
摘要: The header and footer in the tweet embed example have child items that could be arranged as rows using the flex-direction property. This tells CSS to 阅读全文
posted @ 2019-12-08 22:06 jane_panyiyun 阅读(288) 评论(0) 推荐(0)
摘要: Adding display: flex to an element turns it into a flex container. This makes it possible to align any children of that element into rows or columns. 阅读全文
posted @ 2019-12-08 22:03 jane_panyiyun 阅读(200) 评论(0) 推荐(0)
摘要: To the right is the tweet embed that will be used as the practical example. Some of the elements would look better with a different layout. The last c 阅读全文
posted @ 2019-12-08 21:51 jane_panyiyun 阅读(396) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 40 下一页