代码示例:(标识:dhtm_dom_color)
<html>
<body>

<h1 id="header">我的标题</h1>

<script type="text/javascript">
document.getElementById('header').style.color="red"
</script>

<p><b>注释:</b>是脚本改变了该元素的样式!</p>

</body>
</html>
运行结果: