日期:2014-05-16 浏览次数:20334 次
<html> <head> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" /> <title>树!树!到处都是树!</title> <script> var header=document.getElementsById("header"); alert(header.nodeType); //alert(header.fristChild.nodeValue); </script> </head> <body> <h1 id="header">树!树!到处都是树!</h1> <p>HTML那层层嵌套的代码就像一棵<em>树</em>一样!</p> <div> 一层一层的树<img src="../images/stach_heap.gif" /> </div> </body> </html>