CSS设置DIV居中


<style type="text/css">
body{
text-align:center;
}

.divs{
margin:0 auto;
}
</style>

<body>
<div class="divs">CSS设置DIV居中</div>
</body>