扩大
缩小

2016年2月15日

jquery中的动画

摘要: 1.show()和hide() 参数毫秒,fast,slow,nirmal 200 ,400 600ms2.fadeIn()fadeOut() 改变改变元素的高度3.animate() 自定义动画 语法结构:animate(params,speed,callback); $(this).animat 阅读全文

posted @ 2016-02-15 15:21 LinuxPanda 阅读(175) 评论(0) 推荐(0) 编辑

jquery中的事件

摘要: 1.jquery中的事件 1.执行时机 2.多次使用 3.简写方式2.事件的绑定 bind(type [.date],fn) 点击标题显示内容,再次点击标题隐藏内容 $(function(){ $("panel h5.head").bind("click",function() { if($(thi 阅读全文

posted @ 2016-02-15 14:33 LinuxPanda 阅读(174) 评论(0) 推荐(0) 编辑

jquery中的dom操作

摘要: 1.查找节点 1.1 查找元素节点 $li.text(); 1.2 查找属性节点 $p.attr("title");2.创建节点 2.1 创建元素节点 $li = $("<li></li>"); 2.2 创建文本节点 $li = $("<li>香蕉</li>"); 2.3 创建属性节点 $li = 阅读全文

posted @ 2016-02-15 01:43 LinuxPanda 阅读(297) 评论(0) 推荐(0) 编辑

导航