gpt4 book ai didi

html - 使用 Markdown 输入化学式

转载 作者:行者123 更新时间:2023-12-05 09:21:00 29 4
gpt4 key购买 nike

我正在使用 MarkdownMou 上写一些 Material 。
而且化学式需要经常使用。
例如,我会输入

 H<sub>2</sub>SO<sub>4</sub>        

那么,硫酸可以表示为H2SO4
但是我不知道如何在html中表示阴 ionic 类型的公式。
如图所示:

enter image description here

我试着打字

 SO<sub>4><sup>2-</sup></sub>   

显示如下:SO42-

最佳答案

您可以使用 <sup>收费:

H<sub>2</sub>SO<sub>4</sub> + 2NaOH &rarr; 2H<sub>2</sub>O + Na<sup>+</sup> + SO<sub>4</sub><sup>2-</sup>

给出:

H2SO4 + 2NaOH → 2H2O + Na+ + SO4 2-

查看此示例:https://jsfiddle.net/cp4n31qx/1/

关于html - 使用 Markdown 输入化学式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35537232/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com