一.通过id
var
node = document.getElementById("id");
document.parentNode.removeChild(node);
二.通过class
var
arr = document.getElementsByClassName("class");
for(i=0;
i
Document
ul{
list-style:none;
width:100px;
height:25px;
line-height:25px;
font-size:12px;
}
window.onload=function(){
var obox=document.getElementById("box");
var os