精简导航条HTML,移除不用的span标签

This commit is contained in:
Argo-Lenovo 2016-11-12 18:22:48 +08:00
parent f103fdde83
commit 8659c94cd4
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)