文字设置为div等高的line-height然后垂直居中
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>图片文字居中</title>
</head>
<style type="text/css">
.test {text-align: center;color: #0066CC; margin:5px auto; width:700px; height:120px; line-height:120px; border:1px solid #000000;background: url(http://www.divcss5.com/img/css-logo.gif) no-repeat center;}
</style>
<body>
<div class="test">我是<a href="">css</a>中的居中的完整居中实例;我的布局外层有一个边为1px </div>
</body>
</html>