精简导航条HTML,移除不用的span标签
This commit is contained in:
parent
f103fdde83
commit
8659c94cd4
|
@ -6,7 +6,7 @@
|
||||||
@foreach (var menu in Model.Navigations)
|
@foreach (var menu in Model.Navigations)
|
||||||
{
|
{
|
||||||
<li class="sub-menu">
|
<li class="sub-menu">
|
||||||
<a href="@Url.Content(menu.Url)" class="@menu.Active"><i class="@menu.Icon"></i><span>@menu.Name</span></a>
|
<a href="@Url.Content(menu.Url)" class="@menu.Active"><i class="@menu.Icon"></i>@menu.Name</a>
|
||||||
@if (menu.Menus.Count() > 0)
|
@if (menu.Menus.Count() > 0)
|
||||||
{
|
{
|
||||||
@Html.Partial("SubNavigation", menu.Menus)
|
@Html.Partial("SubNavigation", menu.Menus)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
@foreach (var menu in Model)
|
@foreach (var menu in Model)
|
||||||
{
|
{
|
||||||
<li class="sub-menu">
|
<li class="sub-menu">
|
||||||
<a href="@Url.Content(menu.Url)" class="@menu.Active"><i class="@menu.Icon"></i><span>@menu.Name</span></a>
|
<a href="@Url.Content(menu.Url)" class="@menu.Active"><i class="@menu.Icon"></i>@menu.Name</a>
|
||||||
@if (menu.Menus.Count() > 0)
|
@if (menu.Menus.Count() > 0)
|
||||||
{
|
{
|
||||||
@Html.Partial("SubNavigation", menu.Menus)
|
@Html.Partial("SubNavigation", menu.Menus)
|
||||||
|
|
Loading…
Reference in New Issue