Superscript in CSS only?

后端 未结 15 1449
花落未央
花落未央 2020-11-29 15:20

How can I get superscript done, only in CSS?

I have a stylesheet where I mark the external links with a superscript character, but I\'m having a hard time getting th

15条回答
  •  悲哀的现实
    2020-11-29 15:49

    The CSS property font-variant-position is under consideration and may eventually be the answer to this question. As of early 2017, only Firefox supports it, though.

    .super {
        font-variant-position: super;
    }
    

    See MDN.

提交回复
热议问题