【发布时间】:2017-07-31 09:06:52
【问题描述】:
我有一个元素
<div class="Test_then">The result is ...</div>
Test_then 类如下所示:
.Test_then::before {
content: 'Then';
}
我的目标是让 (The result is ...) 出现在由 Test_then 类添加的 Then 内容下方。所以换句话说 in 会呈现如下:
Then
The result is ...
【问题讨论】:
-
好的。你的代码在哪里??
-
就在那儿。好吧,HTML 不存在,但 CSS 肯定存在,而且很难错过。
标签: css pseudo-element css-content