1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>无标题文档</title> 6 <style> 7 #box{width:200px;height:200px;background:Red;margin:0 auto;} 8 </style> 9 </head> 10 <body> 11 <div id="box"></div> 12 </body> 13 </html>
原文:http://www.cnblogs.com/hduhdc/p/5225548.html