Can Firebug or any tool inspect the element and actually tell which font is being used? (instead of a list)

大憨熊 提交于 2019-12-05 05:51:19

You can edit the list of fonts on the font declaration in firebug.

Starting from the first font, I stick an 'x' in the name. If the font on the page changes, that was the one used.

If it doesn't, I go down the list renaming the fonts until one changes or I get to the default.

There is no way, programmatically, to determine which font is used when a web page is being viewed.

No, all you get is the list. The list functions as a fallback mechanism. If the first font is unavailable, the second will be used and so forth. I would recommend, if you're just trying to work out which font is being used in a specific scenario, that you use firebug to muck about with the font style, reducing it to the last single font in the list. Then add the additional fonts to the list, one by one and see if the font changes on the page. If it doesn't change, you're missing that font.

In firebug on the HTML tab you can inspect the dom node css properties too. If there isn't any font-family declaration, then it uses the default.

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