摘要: 一、获取元素的样式 1.currentStyle: ie支持的获取非行间样式的方法; 用法:对象.currentStyle.样式名; 例:oDiv.currentStyle.width; 2.getComputedStyle: 除IE6、7、8外,获取非行间样式的方法; 用法: getCompute 阅读全文
posted @ 2016-09-26 17:47 HandsomeHan 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 一、事件绑定及移除 1.bind() bind()为每个匹配的元素绑定一个或多个事件处理函数; 语法:bind(event,fn)//不能给未来元素添加事件; bind(event,fn); bind({ key1: value1, key2: value2, key3: value3 }); un 阅读全文
posted @ 2016-09-26 17:46 HandsomeHan 阅读(254) 评论(0) 推荐(0) 编辑
摘要: tab切换实现方式1: 阅读全文
posted @ 2016-09-26 17:44 HandsomeHan 阅读(263) 评论(0) 推荐(0) 编辑
摘要: tab切换实现方式2: 阅读全文
posted @ 2016-09-26 17:44 HandsomeHan 阅读(164) 评论(0) 推荐(0) 编辑