Superscript in CSS only?

后端 未结 15 1421
花落未央
花落未央 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 16:03

    Related or maybe not related, using superscript as a HTML element or as a span+css in text might cause problem with localization - in localization programs.

    For example let's say "3rd party software":

    3rd party software
    3rd party software
    

    How can translators translate "rd"? They can leave it empty for several cyrrilic languages, but what about of other exotic or RTL languages?

    In this case it is better to avoid using superscripts and use a full wording like "third-party software". Or, as mentioned here in other comments, adding plus signs in superscript via jQuery.

提交回复
热议问题