x 提升到 b 需要一个上标
我需要一个上标来显示 x 提升到 b。
我能够显示 x raise 到 2(即 x 平方), 也 x 提高到 3 (即 x 立方体)..
但现在我需要使用上标显示 x 提高到 b ..
请帮忙..
I need a superscript for displaying x raise to b.
I was able to display x raise to 2 (i.e. x square),
also x raise to 3 (i.e. x cube)..
But now I need to display x raise to b using superscript..
Please help..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果字体支持,您可以尝试
\u1D47
(ᵇ)。请注意,在 Unicode 中,这并不是真正的“上标 b”,而是一个语音符号。查找富文本标签库以获得正确的解决方案。
You could try
\u1D47
(ᵇ) if the font supports.Note that in Unicode this is not really intended as a "superscript b", but is a phonetic symbol. Find a rich text label library for the proper solution.
您可以通过在文本字符串中使用 html
标签,然后使用 NSAttributedString-Additions-for-HTML 可从 github 获取。
You can do this by using html
<sup>
tags in your text string and then having it displayed using NSAttributedString-Additions-for-HTML available from github.