在桌子里面rwo我想在玉器中保留一个选择框

时间:2015-08-04 00:14:05

标签: pug

  table.table.table-striped
    thead
      tr
        th(width="10%") Status
        th(width="10%") select
    tbody
      tr
        td {{ Status }}
        td 
          a.select.thumbnail.form-control()
               option(value='1') opt1
               option(value='1') opt2

这不是给我想要的输出。我想在表格的第二列中放置一个选择框。请帮忙

1 个答案:

答案 0 :(得分:1)

a.select将输出<a class="select">。 Dot .是指定来自CSS的类的简写。我假设您要输出<select>代码,在这种情况下,您只需使用select(而不是a.select)。

td
  select.thumbnail.form-control()
    option(value='1') opt1
    option(value='1') opt2