Css 如何使div的内容居中
在这个分区中,内容的顶部高于底部,请告诉我现在要做什么Css 如何使div的内容居中,css,Css,在这个分区中,内容的顶部高于底部,请告诉我现在要做什么 .dtestContactDet{ border-bottom:1px solid #D7D7DE; border-bottom:1px solid #D7D7DE ; -khtml-border-bottom:1px solid #D7D7DE; -moz-border-radius:1px solid #D7D7DE; -webkit-border-bottom:1px solid #D7D7DE; } 粘贴HT
.dtestContactDet{
border-bottom:1px solid #D7D7DE;
border-bottom:1px solid #D7D7DE ;
-khtml-border-bottom:1px solid #D7D7DE;
-moz-border-radius:1px solid #D7D7DE;
-webkit-border-bottom:1px solid #D7D7DE;
}
粘贴HTML也会有所帮助。这个问题有点模糊,请解释一下。你的意思是你想把div居中还是你真的想把div里面的东西居中?如果是前者:
.dtestContactDet{
text-align:center;
}
如前所述。这就是问题所在。您也可以发布html吗?