Ems to Pixel Conversion - Why 62.5% and not 6.25%?

前端 未结 9 1791
不思量自难忘°
不思量自难忘° 2021-02-05 19:17

I know that a lot of us are familiar with setting the font size on the body element in our CSS to 62.5%. This means that 1em will equal 10px and helps for keeping things pixel p

9条回答
  •  旧时难觅i
    2021-02-05 20:03

    You might find this useful as well. http://pixel2em.kleptomac.com This provides an online pixel to em converter and you can also do a complete CSS file conversion.

提交回复
热议问题