Files
2018-10-16 21:32:40 +05:30

11 lines
657 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Use Tab Space Instead of Multiple Non Breaking Spaces Nbsp
localeTitle: 使用制表符空格而不是多个非打破空格
---
## 使用制表符空格而不是多个非打破空格
在HTML中添加多个空格的最常用方法是添加`&nbsp;`为每个空间。要添加标签空间,请将文本放在`<pre>`标签中,例如`<pre>My Text Here</pre>` 每个标签将被视为八个空格。在HTML中添加多个空格的另一种方法是使用CSS例如`<p style="padding-right: 5px;">My Text Here</p>`
#### 更多信息:
* [MDN - 预格式化文本元素](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre)