Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在上标的位置显示一个十字,我知道十字的 unicode 字符(\u2020)。
Unicode 编码纯文本。上标不是纯文本,因此您需要在纯文本之外或“之上”的内容。例如,在网页上,您可以使用 CSS 将字符定位在基线之上(并减小字体大小)。在文字处理器中,您将使用上标命令或样式。
在 Unicode 中,上标字符的数量是有限的,即上标样式的字符变体编码为单独的字符,例如上标两个“²”。但是 Unicode 通常没有上标机制。