【问题标题】:Class with whitespace in Jade / Pug templatingJade / Pug 模板中带空格的类
【发布时间】:2019-11-29 11:54:21
【问题描述】:

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

预期结果是:

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

我必须如何格式化我的 pug 模板才能实现这一点?

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

【问题讨论】:

    标签: twitter-bootstrap pug


    【解决方案1】:

    使用 this site 你的 html 生成了这个哈巴狗:

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

    # 提供 ID。

    . 表示一个类

    【讨论】:

      猜你喜欢
      • 2018-06-21
      • 2016-12-01
      • 2011-06-26
      • 1970-01-01
      • 2012-02-10
      • 2021-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多