【问题标题】:bootstrap for adding button添加按钮的引导程序
【发布时间】:2019-03-18 15:05:08
【问题描述】:
<th><button type="button" id="selectAll" >Select All</button></th>

我必须将上面的代码转换为引导类型的语法,然后将其放置在 haml 文件中。有人可以帮我做到这一点,因为我是 bootstrap 和 haml 的新手。 谢谢

【问题讨论】:

标签: ruby-on-rails ruby button bootstrap-4 haml


【解决方案1】:
%th
  %button.btn.btn-primary#selectAll{type: "button"}
    Select All

这将产生:

<th>
  <button class="btn btn-primary" id="selectAll" type="button">
    Select All
  </button>
</th>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-22
    相关资源
    最近更新 更多