元素访问元素访问<html><body> <h1 id="header">我的标题</h1> <script type="text/javascript">document.getElementById('header').style.color="red"</script> <p><b>注释:</b>是脚本改变了该元素的样式!</p> </body></html>