摘要: Dom:Attribute:$("p").addClass(css中定义的样式类型); 给某个元素添加样式$("img").attr({src:"test.jpg",alt:"test Image"}); 给某个元素添加属性/值,参数是map$("img").attr("src","test.jpg"); 给某个元素添加属性/值$("img").attr("title", function() {... 阅读全文
posted @ 2008-09-26 13:24 grantvip 阅读(678) 评论(1) 推荐(0) 编辑