初识JQuery 实例一(first)

时间:2011-03-16    点击:94   
完整代码:
复制代码 代码如下:

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.highlight
{
background-color: yellow;
}
.gray
{
background-color: Gray;
}
</style>
<script src="http://code.jquery.com/jquery-1.5.js"></script>
</head>
<body>
<ul>
<li>Look:</li>
<li>This is some text in a paragraph.</li>
<li>This is a note about it.</li>
</ul>
<script type="text/javascript">
$("ul li").first().addClass('highlight');
jQuery("ul li").first().next().addClass('gray');
</script>
</body>
</html>
jquery中ajax调用json数据的使用说明
jQuery版Tab标签切换
jquery select(列表)的操作(取值/赋值)
jquery radio 操作代码
ajax更新数据后,jquery、jq失效问题
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved