内联块元素之间的空白 [英] White Space between inline block elements

查看:242
本文介绍了内联块元素之间的空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

内联块元素之间的空间相对于容器的字体大小的实际值是多少?

What is the actual value of the space between inline block elements relative to the container's font-size? It seems to be about 0.3ems.

有没有人知道这是否正确?

Does anyone know if this is correct?

修订

相对于字体大小,有U + 0020字符的标准跨浏览器宽度?

Is there a standard cross browser width of the U+0020 character relative to the font size if so what is it?

推荐答案

内联块元素(或内联元素)之间的空白与单个SPACE U + 0020字符具有相同的效果,通过HTML规范。 (参考:HTML 4.01规范中的文本)文本

White space between inline block elements (or inline elements) has the same effect as a single SPACE U+0020 character, by HTML specifications. (Ref.: Section Text in HTML 4.01 spec.) Text justification could affect this, however, but presumably it is not relevant here.

SPACE的宽度取决于字体,即它是由字体设计器设置的。根据Microsoft针对空间字符的字符设计标准,SPACE的最小宽度应为1/5 em; 平均值为1/4 em;和一个宽字体,1/3 em;最大值为1/2 em。

The width of SPACE depends on the font, i.e. it is set by the font designer. According to Microsoft’s Character design standards for Space Characters, the minimum width of SPACE should be 1/5 em; an "average" value is 1/4 em; and for a "wide" font, 1/3 em; the maximum would be 1/2 em.

这篇关于内联块元素之间的空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆