Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript HTML中的选项卡空间_Javascript_Html_Extjs - Fatal编程技术网

Javascript HTML中的选项卡空间

Javascript HTML中的选项卡空间,javascript,html,extjs,Javascript,Html,Extjs,我想在字符串中使用制表符空间。我正在提供使用新行的代码。但我不知道如何在字符串中使用制表符空间。有人能帮我吗 "Warning ! Sorry Cash Pay is less than this <br/> month\'s installment. Please pay the <br/> right amount." “警告!抱歉,现金支付少于本期分期付款的金额。请支付正确的金额。” &09是ASCII中的制表符。但根据html规范,所有空白字符将被剥离为单个

我想在字符串中使用制表符空间。我正在提供使用新行的代码。但我不知道如何在字符串中使用制表符空间。有人能帮我吗

"Warning ! Sorry Cash Pay is less than this  <br/> month\'s installment. Please pay the  <br/> right amount."
“警告!抱歉,现金支付少于本期分期付款的金额。请支付正确的金额。”
&09是ASCII中的制表符。但根据html规范,所有空白字符将被剥离为单个字符。还有其他空白字符。像
&thinsp
&emsp
&ensp你也可以试试

更新 似乎
&emsp提供选项卡大小的间距。见下文

  • a&emsp;b
    呈现为a b
  • a&ensp;b
    呈现为a b
  • a&thinsp;b
    呈现为a b
  • ab
    呈现为ab
  • a	;b
    呈现为a b

如果将字符串放入HTML
将导致
警告!错误

另请参见:
https://stackoverflow.com/questions/4631646/how-to-preserve-whitespace-indentation-of-text-enclosed-in-html-pre-tags-exclu