What does font size -2 mean here?

不打扰是莪最后的温柔 提交于 2019-12-01 17:05:17

问题


I see this from source code of a web site:

<font size="-2">@2009 </font>

What does it mean when size is negative?


回答1:


It means the font size of @2009 should be -2 units (i.e. 2 units smaller) relative to the content around it.




回答2:


That is a deprecated style of markup. Nobody should be using it anymore.

Back in the old days, before CSS, you could use the <font> tag to control the relative size of text on the page. A "-2" simply meant two sizes smaller than your base font size.

Font sizes ranged from 1 to 7 in first generation browsers, if I recall correctly.




回答3:


It means two notches smaller than the default text size in the browser.



来源:https://stackoverflow.com/questions/1231034/what-does-font-size-2-mean-here

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