Impossible with the same HTML structure, you must have something to distinguish between Hello
and How are you
.
(使用相同的HTML结构是不可能的,您必须有一些东西来区分Hello
和How are you
。)
I suggest using span
s that you will then display as blocks (just like a <div>
actually).
(我建议使用span
,然后将其显示为块(实际上就像<div>
)。)
HTML:
(HTML:)
<p><span>hello</span><span>How are you</span></p>
CSS:
(CSS:)
p span
{
display: block;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…