Best way to encode Degree Celsius symbol into web page?

前端 未结 7 1365
鱼传尺愫
鱼传尺愫 2020-12-13 05:15

How should I encode special characters into web pages? For instance I need this symbol ℃, which I used just by copying and pasting the character as I can see it now. This wo

7条回答
  •  眼角桃花
    2020-12-13 06:04

    1. The degree sign belongs to the number, and not to the "C". You can regard the degree sign as a number symbol, just like the minus sign.
    2. There shall not be any space between the digits and the degree sign.
    3. There shall be a non-breaking space between the degree sign and the "C".

提交回复
热议问题