问题描述
我目前正在尝试为 github 制作一个 README.md 文件。
但我希望他们在同一条线上。 这是到目前为止的代码:
<h2 align="center">Ciao</h2>
<p align="right">
<a href=""><strong>English Version »</strong></a>
</p>
我尝试使用 div,但没有成功
解决方法
你可以使用 flexbox 来实现:
<div style="display: flex; justify-content: space-between; align-items: center;">
<h2>Ciao</h2>
<a href=""><strong>English Version »</strong></a>
</div>
为了使 a
标签正常工作,我还删除了该段落。