jQuery eq() filter() not()
来源:互联网 发布:淘宝怎么用花呗支付 编辑:程序博客网 时间:2024/06/11 14:09
官方参考:http://www.w3school.com.cn/jquery/jquery_traversing_filtering.asp
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>demo</title><script type="text/javascript" src="jquery.js"></script><script type="text/javascript">// function changered (x) {// x.style.width="300px";// x.style.height="300px";// }// function changeblue (y) {// y.style.width="100px";// y.style.height="100px";// }$(document).ready(function(){$("#demo").click(function(){$("div").animate({left:'250px',opacity:'0.8',width:'400px',height:'400px'});});});</script><script type="text/javascript">$(document).ready(function(){$("#test p").eq(0).css("color","red");$("#test p").eq(1).css("color","red");$("#test p").eq(2).css("color","red");});</script></head><body><div style="width:300px;height:300px;overflow: hidden;"><div id="demo" style="background:url(1.jpg) no-repeat 0 center;height:20px;width:100px;position:absolute;"><!-- <img src="1.jpg" alt="" onmouseover="changered(this);" onmouseout="changeblue(this);" style="width:100px;height:100px;" > --></div></div><div id="test"><p>第一名</p><p>第二名</p><p>第三名</p><p>第四名</p></div></body></html>
0 0
- jQuery eq() filter() not()
- jQuery 遍历 - 过滤---first--last---eq--not--filter方法(二十五)
- 知识点七:jQuery 遍历 - 过滤first(), last() 和 eq(),filter() 和 not()
- jquery笔记:筛选 eq,first,last,filter,is,has, not, children,closest, nextUntil,parents,parentsUntil.....
- jquery eq
- jQuery中filter、clone、slice、bind、each、siblings、attr、mouseenter、preventDefault、trigger、:eq、:gt、find用法
- jquery循环遍历中add\each\andSelf\eq\filter\map\slice方法的使用
- jQuery :eq,lt,gt
- jQuery API .eq()
- jQuery :eq() 选择器
- JQuery中的eq()方法
- jQuery的eq()方法
- jquery选择器eq用法
- jQuery eq(index)选择器
- jQuery的eq函数
- jquery中.eq()与:eq()的区别
- jQuery中filter(),not(),split()的用法
- jQuery中not(),filter()的使用方法
- 原创/自译教程:UI, UX: Who Does What? 设计类职位的区别[翻译]
- socketio-netty
- Android 控制ScrollView滚动到底部
- 重回起点,重新出发
- 高可用性(HA)与Replication机制
- jQuery eq() filter() not()
- 大数据分析- 基于Hadoop/Mahout的大数据挖掘
- java单例模式线程安全
- 19_C# 实现VMS客户端——控件_DateTimePicker
- android开发系列之动画
- Xcode 6 allows VECTOR image assets… any idea how to use them?
- HDOJ 1009
- Linux chmod授权命令说明
- 从决策树学习谈到贝叶斯分类算法、EM、HMM