9

鉴于、 文本和其他是兄弟姐妹,我如何将'Featured'文本嵌套在标签内?aspanspan

li
  a href="#" class="selected"
    span class="icon-before"
    Featured
    span class="icon-after"
4

2 回答 2

13
li
  a href="#" class="selected"
    span class="icon-before"
    | Featured
    span class="icon-after"

给出:

<li><a class="selected" href="#"><span class="icon-before"></span>Featured<span class="icon-after"></span></a></li>
于 2012-11-22T14:48:56.030 回答
0
ul
  li
    | first text
    span.color-red.bold-g
     | (text transform)

给 :

<ul><li>first text<span class="color-red bold-g">(text transform)</span></li>
于 2016-10-03T15:24:57.413 回答