9
如何在a
標籤內嵌入'Featured'
文本,因爲span
,文本和其他span
是兄弟?在slim中的標籤內嵌套文本
li
a href="#" class="selected"
span class="icon-before"
Featured
span class="icon-after"
如何在a
標籤內嵌入'Featured'
文本,因爲span
,文本和其他span
是兄弟?在slim中的標籤內嵌套文本
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>