如何让这个div居中显示?

来源:百度知道 编辑:UC知道 时间:2024/05/26 01:47:21
<style>
div,body{
font-size:9pt;
}
.nr{
float: left;
width:762px;
border: 1px solid #D2E4FC;
background-color: #F5F9FE;
}
.nr div{
float: left;
width:190px;
text-indent: 5px;
height: 21px;
border-top-width: 1px;
border-top-color: #DFECFD;
line-height: 150%;
border-top-style: solid;
}
.nr div.bt{
width:100%;
background-color: #D2E4FC;
border-top-style: solid;
border-top-width: 0px;
}
.nr div.bt div{
width:100px;
color: #FFFFFF;
text-align: center;
font-weight: bold;
background-color: #77A7EF;
border-top-style: solid;
border-top-width: 0px;
}

</style>
<div class="nr">
<div class="bt">
<div>1234567</div>
</div>
<div>1第1行第2列</div>
<div><a href="如何让这个div居中显示? 如何让DIV层在网页中居中显示 如何让图片居中?用DIV+CSS 为什么这个div不在网页中居中显示 如何让网页居中显示?急~~谢谢~~ 怎样让div中的li居中 如何使DIV中的内容居中 请问DIV与DIV如何实现垂直居中对齐? 我用div做表格,怎么才能让div居中,而div内的文字不居中,还有怎样让div内的文字垂直居中 如何让网页居中?