document.write('

 解析:

<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional
//EN" "">
<html xmlns="">
<head>
<meta name="author" type="Nancle from CAU CS101" />
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8"/>
 <title> 如何让 img 标签在 DIV 里左右、上下居中 </title>
 <script type="text/JavaScript"> </script>
 <style type="text/css">
 #container{width:400px;height:400px;background:#ccc;
text-align:center;}
 img{margin:100px auto 0 auto;}
 </style>
 </head>
<body>
 <div id="container">
 <img src="" width="200" height="200" />
 </div>
 <p>
</p>
</body>
</html> 
');