| 使用removeChild来移除元素 
 Js代码
 顺便说一下,若想隐藏DIV复制代码<html>   
<body>   
<div id="d" style="color:red;">112</div>   
<body>   
<script>   
var obj = document.getElementById("d");   
document.body.removeChild(obj);   
</script>   
</html>  
 Js代码
 复制代码<div di='qq'>adsf</div>   
<scrtip>   
      document.all.qq.style.display='none';   
</script>  
 |