DIV居中显示
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> DIV居中显示</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body { font-size:12px;font-family:tahoma;}
div {
width:1003px;height:600px; background-color:#000000; position:absolute; left:50%; top:50%; margin-left:-501.5px; margin-top:-300px
}
</style>
</head>
<body>
<div ></div>
</body>
</html>