摘要: function getElementsByClassName(node,classname){ if(node.getElementsByClassName){ return node.getElementsByClassName(classname); } else { var results = new Array(); var elems = node.getElementsByTagName("*"); for(var i=0; i<elems.length; i++){ if(elems[i].className == classname){ result 阅读全文
posted @ 2012-05-31 12:00 赵小磊 阅读(355) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title></title> <style type="text/css"> * { margin:0; padding:0; } ul { list-style:none; } #nav { width:500px; height:35px; margin:0 auto; font-size:13px; } #nav li { float:left; width:12 阅读全文
posted @ 2012-05-31 11:34 赵小磊 阅读(141) 评论(0) 推荐(0) 编辑
回到头部