Skip to main content
February 21, 2010
解決済み

Superscript and Subscript

  • February 21, 2010
  • 返信数 1.
  • 1187 ビュー

How to apply superscript and subscript for the content to be fetched from the xml file?

このトピックへの返信は締め切られました。
解決に役立った回答

If the font has super- and subscript glyphs, you can use specific values of the baselineShift attribute:

<span>normal </span><span baselineShift="superscript">super</span><span baselineShift="subscript">sub</span>

If your font does not have these glyphs, you can simulate super- and subscript by decreasing the fontSize and setting baselineShift to an appropriate number.

返信数 1

解決!
February 21, 2010

If the font has super- and subscript glyphs, you can use specific values of the baselineShift attribute:

<span>normal </span><span baselineShift="superscript">super</span><span baselineShift="subscript">sub</span>

If your font does not have these glyphs, you can simulate super- and subscript by decreasing the fontSize and setting baselineShift to an appropriate number.