玉字
Span within a sentence with jade
我怎样才能用 Jade 做到这一点?
<h3 class = "blurb"> how would I <span>do this</span></h3>
我几乎可以做任何事情,除了引入一个跨度中间句子。
这应该对你有帮助:
h3
how should I
span do this
您的输出代码不会完全是您想要的,但是当它在 html 中呈现时,它应该是您需要的
h3.blur.
how would I <span>do this</span>
或
h3.blur
| how would I
span do this
请注意,由于缩进,复制上面的代码段可能无效。您需要在 sublime 或类似的编辑器中将空格转换为制表符。
管道也是可选的,具体取决于上下文
h3.blurb how would i
span do this
也有效
可能正确的方法是使用 pug's tag interpolation:
h3.blur how would I #[span do this]
我怎样才能用 Jade 做到这一点?
<h3 class = "blurb"> how would I <span>do this</span></h3>
我几乎可以做任何事情,除了引入一个跨度中间句子。
这应该对你有帮助:
h3
how should I
span do this
您的输出代码不会完全是您想要的,但是当它在 html 中呈现时,它应该是您需要的
h3.blur.
how would I <span>do this</span>
或
h3.blur
| how would I
span do this
请注意,由于缩进,复制上面的代码段可能无效。您需要在 sublime 或类似的编辑器中将空格转换为制表符。
管道也是可选的,具体取决于上下文
h3.blurb how would i
span do this
也有效
可能正确的方法是使用 pug's tag interpolation:
h3.blur how would I #[span do this]