<!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>
做一个测试
</title>
<style type="text/css" rel="stylesheet">
#countainer{
margin:auto;
width:1024px;
height:100%;
background-color:#cccccc;
}
</style>
</head>
<body>
<div id="countainer">
中国
</div>
</body>
</html>
让div居中而文字不居中的例子
最新推荐文章于 2021-12-21 14:34:31 发布