gpt4 book ai didi

node.js - Jade 模板 : How to create a hyperlink in UL with description to the hyperlink

转载 作者:搜寻专家 更新时间:2023-10-31 23:00:45 24 4
gpt4 key购买 nike

我正在尝试创建一个带有超链接的列表。每个列表项在一行中包含一个主题和对该主题的简单描述。我想包含主题的超链接而不是描述。我所做的如下。

ul#subjects
li
a(href="#") Subject: Here is the description of the subject

该链接工作正常,但它覆盖了整行文本。如何关闭超链接,使其在 HTML 中变成如下所示的内容?请注意,“:”未包含在超链接中。

<ul id='subjects'>
<li><a href='#'>Subject</a>: Here is is the description of the subject
</ul>

谢谢。 :)

最佳答案

使用|在Jade中显示HTML文本

例如

ul#subjects
li
a(href="#") Subject
| : Here is the description of the subject

关于node.js - Jade 模板 : How to create a hyperlink in UL with description to the hyperlink,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25968472/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com