有没有办法在没有 CSS 的情况下并排对齐两个 HTML 元素?如何?
is there a way to align two HTML elements side by side without CSS? How?
我刚刚更新 my profile readme on Github, but i had a issue. I need to align two elements side by side vertically, but, when I tried to use CSS, I just found out that it's impossible to use style attr on Github's Markdown files。那么,如何在没有 CSS 的情况下并排垂直对齐两个元素?
我的代码:
<details>
<summary>Minhas Estátisticas no Github</summary>
<p align="center">
<img src="https://github-readme-stats.vercel.app/api?locale=pt-br&username=carlos3g&theme=radical&show_icons=true&include_all_commits=true" alt="Estátisticas Gerais" />
</p>
<p align="center">
<img src="https://github-readme-stats.vercel.app/api/top-langs?locale=pt-br&username=carlos3g&theme=radical" alt="Techs utilizadas nos projetos" />
</p>
</details>
我想对齐这两个 p
标签
如果想让这两张图片并排对齐,请使用默认为块元素的 p
标签 从代码中删除 p
标签
<details>
<summary>Minhas Estátisticas no Github</summary>
<p>
<img align="left" src="https://github-readme-stats.vercel.app/api?locale=pt-br&username=carlos3g&theme=radical&show_icons=true&include_all_commits=true" alt="Estátisticas Gerais" />
<img align="right" src="https://github-readme-stats.vercel.app/api/top-langs?locale=pt-br&username=carlos3g&theme=radical" alt="Techs utilizadas nos projetos">
</p>
</details>
注意:我使用 p
标签在摘要标题和详细信息之间增加了 space
如果需要,您也可以使用表格,但在这种情况下它不是很有用。 Here a good guide to using tables in markdown
我刚刚更新 my profile readme on Github, but i had a issue. I need to align two elements side by side vertically, but, when I tried to use CSS, I just found out that it's impossible to use style attr on Github's Markdown files。那么,如何在没有 CSS 的情况下并排垂直对齐两个元素? 我的代码:
<details>
<summary>Minhas Estátisticas no Github</summary>
<p align="center">
<img src="https://github-readme-stats.vercel.app/api?locale=pt-br&username=carlos3g&theme=radical&show_icons=true&include_all_commits=true" alt="Estátisticas Gerais" />
</p>
<p align="center">
<img src="https://github-readme-stats.vercel.app/api/top-langs?locale=pt-br&username=carlos3g&theme=radical" alt="Techs utilizadas nos projetos" />
</p>
</details>
我想对齐这两个 p
标签
如果想让这两张图片并排对齐,请使用默认为块元素的 p
标签 从代码中删除 p
标签
<details>
<summary>Minhas Estátisticas no Github</summary>
<p>
<img align="left" src="https://github-readme-stats.vercel.app/api?locale=pt-br&username=carlos3g&theme=radical&show_icons=true&include_all_commits=true" alt="Estátisticas Gerais" />
<img align="right" src="https://github-readme-stats.vercel.app/api/top-langs?locale=pt-br&username=carlos3g&theme=radical" alt="Techs utilizadas nos projetos">
</p>
</details>
注意:我使用 p
标签在摘要标题和详细信息之间增加了 space
如果需要,您也可以使用表格,但在这种情况下它不是很有用。 Here a good guide to using tables in markdown