基本上我在div的底部找到了我喜欢的文本,但问题在于它是左对齐,我希望它位于div的中心。居中对齐文本到div的底部
CSS3
#article-footer {
width: 100%;
margin: 0 auto;
}
#article-footer {
position: relative;
width: 70%;
float: left;
font-weight: bold;
font-size: 23px;
color: #354175;
}
#article-footer span{
position:absolute;
bottom: 0;
}
使用文本对齐:中心为 – Rex
你有HTML代码? –
是的HTML5,但CSS几乎可以解释它,文本只是三个字“买*卖*贸易” – SecretWalrus