twitter-bootstrap - 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')
解决方案
使用此站点,您的 html 生成了这个哈巴狗:
#fa.modal.fade(tabindex='-1' role='dialog' aria-labelledby='exampleModalCenterTitle' aria-hidden='true')
#
提供 ID。
.
表示一个类
推荐阅读
- join - codeigniter 如何连接两个表以拥有两个 Id 列
- python - 我怎样才能修复协程从未等待过?
- swift - 我想在自定义 UITableViewCell 中创建一个包含 n 个 UITextField 的注册表单
- android - 问题:Google 违反权限政策删除应用
- javascript - 流畅刷新页面
- angular - Angular、TypeScript 中的实时 HTML 表单验证 (onBlur)
- scala - Scala:阅读器内部带有防护功能的理解
- bash - 对除 Bash 中的文本以外的数值进行排序
- flutter - 在 TextFormField 中写入时 UI 崩溃
- javascript - React JS - 获取当前可见的数组中的所有 dom 元素 id