你好,
目前文本位于我网站的顶部,但我希望它位于底部;
<p style="text-align:relative;">this is best day ever!this is best day ever!this is best day ever!<p>
当我编辑它并添加 text-align:bottom 时,它起作用了!!!!
最佳答案
试试这段代码:
<html>
<head>
<title>test</title>
</head>
<body>
<div style="position: relative">
<p style="position: fixed; bottom: 0; width:100%; text-align: center"> TEXT YOU WANT
</p>
</div>
</body>
</html>
关于css - HTML:我想将这段文字放在页面底部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17989923/