css技巧---menu菜单加new
<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%;
}
原文链接:https://blog.csdn.net/hongyu799/article/details/110010688