我有以下代码在 IE7 中显示某个 UL。然后,我如何为除 IE7 之外的所有浏览器应用其他 UL 样式?例如到 chrome、firefox 和 IE8 - IE10
<!--[if IE 7]>
<ul class="toggle" style="margin-right:30px; list-style:none">
@if (Model.CourseSections != null)
{
foreach (var sectionItem in Model.CourseSections)
{
<li>
<h5 class="accordion-title">@sectionItem.Title<span class="accordion-icon"></span></h5>
<div class="accordion-content">
<ul>
@foreach (var subSectionItem in sectionItem.SectionContents)
{
<li><a href="#" id="menuItem @subSectionItem.ContentID @sectionItem.CourseSectionID" onclick="SubItemMenu(id)">@subSectionItem.Content.Name</a></li>
}
</ul>
</div>
</li>
}
}
</ul>
<![endif]-->
<ul class="toggle" style="list-style:none">
@if (Model.CourseSections != null)
{
foreach (var sectionItem in Model.CourseSections)
{
<li>
<h5 class="accordion-title">@sectionItem.Title<span class="accordion-icon"></span></h5>
<div class="accordion-content">
<ul>
@foreach (var subSectionItem in sectionItem.SectionContents)
{
<li><a href="#" id="menuItem @subSectionItem.ContentID @sectionItem.CourseSectionID" onclick="SubItemMenu(id)">@subSectionItem.Content.Name</a></li>
}
</ul>
</div>
</li>
}
}
</ul>