在没有div的情况下将按钮居中对齐

时间:2019-10-09 00:48:17

标签: html css

所以我有一个应该居中的按钮,但是该按钮不会在中心对齐。我还尝试了许多可以找到的策略。 我已经尝试过margin:auto;还有其他所有内容,因此请不要对此发表评论。

这是我的代码:

 <a style=" float: center; position: absolute; text-align: center; " href="https://cool.glitch.me/#top" class="cool-button">Go back up! </a>

0 个答案:

没有答案