好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CSS如何让文字居于div的底部_html/css_WEB-ITnose

CSS如何让文字居于div的底部:
让文字在div中垂直居中比较简单,只要将line-height的属性值设置为div的高度即可,但是让文字在div的底部显示就没有那么简单了,下面对此做一下简单的介绍,代码实例如下:

      蚂蚁部落  #box {  height:300px;  width:300px;  border:1px solid #333333;  text-align:center;  position:relative}#box p {  position:absolute;  bottom:0px;  padding:0px;  margin:0px}   

蚂蚁部落欢迎您

查看更多关于CSS如何让文字居于div的底部_html/css_WEB-ITnose的详细内容...

  阅读:130次