等宽字体(monospaced font)是指字符宽度相同的电脑字体。东亚语言中,方块字基本上都作为等宽字体处理,如各个地区的汉字、日语假名的全形字符、韩语谚文音节等字符都是等宽的。
依照约定,还要用等宽字体显示元素的内容。
By convention, you also display the contents of a element in a monospaced font.
通常以稍大的等宽字体来表示键盘输入(在HTML中,用元素表示键盘输入)。
Keyboard input, indicated with the HTML element, is typically represented in a slightly larger monospaced font. Here's an HTML sample.
如果您对预置元素定义一种样式规则,一些浏览器忘记使用等宽字体,将被迫使用此字体家族特性。
If you define a style rule for the pre element, some browsers forget to use the monospace font, necessitating the use of the font-family property.
应用推荐