摘要:
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 阅读全文
摘要:
<!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 阅读全文