<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.aaa{ width:300px; height:100px; background:#00CC66; line-height:100px; text-align:center;}
</style>
<title>景安网络</title>
</head>
<body>
<div class="aaa">景安网络</div>
</body>
</html>
我们可以使用text-align:center; line-height;属性设置器水平居中和垂直居中
本回答被网友采纳