English 中文(简体)
值是指字母的宽度或高度?
原标题:When setting CSS font-size in pixels, does the value refer to the width or height of a letter?
  • 时间:2012-04-27 15:48:10
  •  标签:
  • html
  • css

font-size的胎面值是否是指胎体的高度或胎体的宽度?

CSS:

.sixteen {
  font-size: 16px;
}

传真:

<span class= sixteen >a</span>

“a” 是16个食堂,还是16个食堂,或者说两者都一样,这样,整个特性就适合16个盒子?

我看到的所有文件在这一问题上都含糊不清。

最佳回答

身高,特别是从ender(例如, h或(el))到ender底(例如,g或 y )。 见http://en.wikipedia.org/wiki/Typeface_anatomy” rel=“noretinger”http://en.wikipedia.org/wiki/Typeface_anatomy

问题回答

The font-size property specifies the size of the font, no matter what unit is used. The size of a font can be characterized as the height of the font, but even this is just a loose and pragmatic description; characters may extend above and below the levels defined by the size of the font. The size is a more or less abstract property, and it should not be expected to correspond to the height (still less the width) of any character.

具体来说,如果“a”信的字体处于字体满的高度,那就是错误的。 “a”的高度通常为体力的一半左右,但这种高度必然会因体力而异(采用同一体大小在《新罗马时报》和韦尔达纳用“a”进行工业测试)。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签