freeCodeCamp/guide/chinese/typography/ems-and-ens/index.md

31 lines
1.3 KiB
Markdown
Raw Normal View History

---
title: Ems and Ens
localeTitle: Ems和Ens
---
## Ems和Ens
Ems和Ens是标点符号“dash”的一种形式。虽然外观与连字符相似但它们用于不同的目的。
### Em Dash
使用Em破折号表示句子中的中断。将其替换为逗号或表示句子中的暂停。它们还用于将引用归因于发言者。 Em dash是一个宽度 - 字体点大小的宽度。在破折号之前和之后不要放任何空格。 例如:来自邻居家的噪音 - 它杀了我。
* Mac上的Em破折号命令Shift-Option-Hyphen
* Microsoft Word上的Em破折号命令Alt + Ctrl +(减号)
* 用HTML `—` `—`或`—`
### 恩达什
使用En短划线代替单词“to”或表示一系列数字。 En破折号是Em破折号的一半宽度。在短划线之前和之后不要放置任何空格。 例如第一次世界大战持续了1914-1918。
* 在Mac上使用En破折号的命令Option-Hyphen
* Microsoft Word上的En破折号命令Ctrl +(减号)
* 用HTML表示 `–`或`–`
#### 更多信息:
短跑 - [维基百科](https://en.wikipedia.org/wiki/Dash#Em_dash)
用Ellen Lupton的[类型思考](http://thinkingwithtype.com) - [用类型思考](http://thinkingwithtype.com)
Modularscale - [http://www.modularscale.com/](http://www.modularscale.com/)