简体   繁体   English

字体大小问题

[英]Font-Size issue

I set the font-size of a table-data with JQuery to 70px but when I inspect the element with firebug it has 83px height, so my question is, how can I know what will be the real height of the table-data when I set the font-size with an specific value. 我使用JQuery将表数据的字体大小设置为70px,但是当我用firebug检查元素的高度为83px时,所以我的问题是,我如何知道表数据的实际高度?使用特定值设置字体大小。 Inspecting the element with firebug I realize that the extra height is because of the special characters like "Ñ" and "j" PD: The table-data it hasn't have any padding, margin, or border. 用Firebug检查元素我意识到,额外的高度是由于特殊字符(例如“Ñ”和“ j”)造成的:PD:表数据没有任何填充,边距或边框。

You should inspect the line-height . 您应该检查line-height I setup an example for you. 我为您设置一个示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM