<span id="${menuInfo.menuId}">
${menuInfo.menuName}
<#if menuInfo.newMenu == true>
<i class="newIcon"></i>
</#if>
</span>
.newIcon{
width: 32px;
height: 32px;
position: absolute;
z-index: 1001;
margin-left: 3px;
margin-top: -10px;
background: url(../images/new.svg) no-repeat;
background-size: 100% 100%;
}
这段代码展示了如何在HTML中创建一个带有新图标的新菜单项。菜单项的名称被设置为`${menuInfo.menuName}
4436

被折叠的 条评论
为什么被折叠?



