摘要: 定位 父元素和子元素分别取不同的 position 值。思考 position 属性各种取值的真正含义,尤其是 absolute 究竟是相对谁而言的 position:static 默认值,无特殊定位,元素遵循HTML定位规则; position:absolute 表示绝对定位,元素以块元素(blo 阅读全文
posted @ 2016-03-27 19:42 leoorpio 阅读(288) 评论(0) 推荐(0) 编辑
摘要: call() and apply() allow you to indirectly invoke a function as if it were a method of some other object. call( )和apply( )允许你间接的引用一个函数,犹如他是其他对象的方法一样。 阅读全文
posted @ 2016-02-16 23:17 leoorpio 阅读(161) 评论(0) 推荐(0) 编辑