<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style type="text/css">
.message{
width:200px;
height:100px;
background-color:#CCC;}
</style>
</head>
<body>
<script type="text/javascript">
var element=document.creatElement('div');
node.className="message";
var textNode=document.createTextNode("I Love JavaScript!");
element.appendChild(textNode);
document.body.appendChild(node);
</script>
</body>
</html>
document.body.appendChild(node);改为document.body.appendChild(element);
node.className="message";改为element.className="message";
var element=document.creatElement('div');改为 var element=document.createElement('div');
document.createElement少了个e
把node改成element就好了