摘要:
Dom: Attribute:$("p").addClass(css中定义的样式类型); 给某个元素添加样式$("img").attr({src:"test.jpg",alt:"test Image"}); 给某个元素添加属性/值,参数是map $("img").attr("src","test.jpg"); 给某个元素添加属性/值 $("img").attr("title", function(...
阅读全文
posted @ 2009-06-11 21:54
gotolovo
阅读(128)
推荐(0)
编辑
摘要:
<HTML><HEAD> <TITLE> New Document </TITLE> <style type="text/css"> .selected { background-color:Yellow; } </style> <script type="text/javascript" src="jquery-1[...
阅读全文
posted @ 2009-06-11 21:29
gotolovo
阅读(162)
推荐(0)
编辑