这样写为什么空白?
<!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 p = document.createElement("p");
p.className = "message";
p.document.createTextNode("I love JavaScript!");
</script>
</body>
</html>