.txt{
height:300px;
width:300px;
border:1px solid #333333;
text-align:center;
position:relative
}
.txt p{
position:absolute;
bottom:0px;
padding:0px;
margin:0px
}
<div class="txt">
<p>我是来靠底部的。。。。。。</p>
</div>
.txt{
height:300px;
width:300px;
border:1px solid #333333;
text-align:center;
position:relative
}
.txt p{
position:absolute;
bottom:0px;
padding:0px;
margin:0px
}
<div class="txt">
<p>我是来靠底部的。。。。。。</p>
</div>
转载于:https://www.cnblogs.com/937522zy/p/6655283.html