我想在我的字符串中使用制表符空间。我正在提供使用新行的代码。但我不知道如何在字符串中使用制表符空间。谁可以帮我这个事 !?
"Warning ! Sorry Cash Pay is less than this <br/> month\'s installment. Please pay the <br/> right amount."
我想在我的字符串中使用制表符空间。我正在提供使用新行的代码。但我不知道如何在字符串中使用制表符空间。谁可以帮我这个事 !?
"Warning ! Sorry Cash Pay is less than this <br/> month\'s installment. Please pay the <br/> right amount."
	是 ASCII 中的 TAB 字符。但根据 html 规范,所有空白字符都将被剥离为单个字符。还有其他空白字符。喜欢 ,你 也 可以试试。
它似乎 给出了标签大小的间距。请参阅以下内容
a b呈现为ba b呈现为ba b呈现为ba b呈现为ba	b呈现为b如果你把你的字符串放在一个 HTML<pre>元素中,那么它可以有一个制表符。"Warning! \t error"要放入 innerHTML 的字符串集<pre id="output"></pre>将导致
: Warning! error。
另请参阅:
https ://stackoverflow.com/questions/4631646/how-to-preserve-whitespace-indentation-of-text-enclosed-in-html-pre-tags-exclu
您还可以使用 (不间断空格)在 HTML 行中创建空格。
"Warning ! Sorry Cash Pay is less than this month\'s installment. Please pay the right amount."
如果要添加单个空格,请键入
如果要添加 2 个空格,请键入 
如果要添加4个空格,请键入  (4个空格是一个tab空格)