例如:
	<!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>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>DIV单行文字垂直居中</title>
	<style type="text/css">
	<!--
	.cr { top:50%; left:50%; margin:-80px 0 0 -140px; width:280px; height:160px; position:absolute; background-color:#CCC; line-height:160px; text-align:center; font-size:16px; }
	-->
	</style>
	</head>
	<body>
	<div class="cr">现在文字垂直居中了吧</div>
	</body>
	</html>
	
	效果图片:
	


 
						
0536-8800925