What exactly is the font-size? [duplicate]

匆匆过客 提交于 2019-12-07 07:19:30

It represents the size taking as reference the top of the highest letter like a 'I' and the bottom of a descender character like a 'p'

You can find more information on this page

Regards.

If you want to calculate the height of a certain text maybe this helps:

http://daipratt.co.uk/calculate-text-width-and-height-with-javascript/

If you set font size in em, it will shows same size in all browsers and also in zoom function.

Serif Serif fonts have small lines at the ends on some characters (Times New Roman) Sans-serif "Sans" means without - these fonts do not have the lines at the ends of characters (Arial, Verdana) Monospace All monospace characters have the same width (Courier New, Lucida Console)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!