0

我尝试了两种不同的变体:

  td
    span.glyphicon.glyphicon-chevron-up 
    span    Search

span_not_bootstrap

button#toggle_unimportant_search_params class=["btn", "btn-primary"]
  span.glyphicon.glyphicon-list
  span    Show all parameters

button_not_bootstrap

对比

  td
    span.glyphicon.glyphicon-chevron-up Search

span_bootstrap

button#toggle_unimportant_search_params class=["btn", "btn-primary"]
  span.glyphicon.glyphicon-list Show all parameters

button_bootstrap

所以看起来带有额外的变体span    看起来更好。但这不是我所知道的引导方式。引导方式是:

<button type="button" class="btn btn-default btn-lg">
  <span class="glyphicon glyphicon-star"></span> Star
</button>
4

1 回答 1

0

对这些元素使用苗条语法的正确形式是:

td
  span.glyphicon.glyphicon-chevron-up 
  |  Search

button#toggle_unimportant_search_params class=["btn", "btn-primary"] type="button"
  span.glyphicon.glyphicon-list
  |  Show all parameters
于 2013-09-30T16:16:21.803 回答