Chrome dev tools exact computed value for CSS rules

时间秒杀一切 提交于 2020-01-04 01:08:52

问题


Is there anyway for instance I can get the exact pixel value (with decimal places) of a font to show in Chrome dev tools?

In Firebug (below) when I define a % value it shows the exact computed value in pixels up to 4 decimal places.

In Chrome dev tools (below) it only shows a whole number value.

In essence I want to be able to see in dev tools ► font-size: 13.7167px;

Thanks!


回答1:


Yes, you simply need to view Computed Style under Chrome Dev Tools.

Dev Tools -> Elements -> Computed Style



回答2:


In Chrome it may not give you the exact pixel value for one character, but it will give you the exact pixel size for the chunk of text if you look in computed under "width"



来源:https://stackoverflow.com/questions/19591892/chrome-dev-tools-exact-computed-value-for-css-rules

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