鉴于、 文本和其他是兄弟姐妹,我如何将'Featured'
文本嵌套在标签内?a
span
span
li
a href="#" class="selected"
span class="icon-before"
Featured
span class="icon-after"
鉴于、 文本和其他是兄弟姐妹,我如何将'Featured'
文本嵌套在标签内?a
span
span
li
a href="#" class="selected"
span class="icon-before"
Featured
span class="icon-after"
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>
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>