在 CSS 中,有没有办法在 `content` 中的两个字符串之间添加一个制表符?

In CSS, is there any way to add a tab break between two strings in `content`?

在 CSS 中,有没有办法在 content 中的两个字符串之间添加制表符,就像 [=13=]a0 中的 nbsp?

例如,你可以这样写:

div.test::before {
   content: "hello[=11=]a0world";
}

输出hello world.

但是输出单词 hello 并在单词 world 之前用制表符分隔的东西呢?

你还需要定义white-space算法

div.test::before {
   content: "helloworld";
   white-space:pre;
}

div.test2::before {
   content: "hello\Aworld";
   white-space:pre;
}

[class] {
  border:1px solid;
  margin:5px;
}
<div class="test">
</div>

<div class="test2">
</div>