首页 > 解决方案 > Jade / Pug 模板中带空格的类

问题描述

我试图将一个模式窗口从 Bootstap 添加到玉/哈巴狗模板,但我失败了。

预期结果是:

<div id="fa" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"></div>

我如何格式化我的哈巴狗模板来实现这一点?

#fa.????(tabindex='-1', role='dialog', aria-labelledby='exampleModalCenterTitle', aria-hidden='true')

标签: twitter-bootstrappug

解决方案


使用此站点,您的 html 生成了这个哈巴狗:

#fa.modal.fade(tabindex='-1' role='dialog' aria-labelledby='exampleModalCenterTitle' aria-hidden='true')

#提供 ID。

.表示一个类


推荐阅读