我的jQuery看起来像这样:$('#nav-main ul li').hover(function () {$('#nav-main ul li').addClass('test');
$(this).find('.dropdown').stop(true,true).slideToggle('slow')
您知道有什么方法可以完全清除母版页中的<nav class="navClass">,或者用<nav> (no content, no styling in between) </nav>替换它吗?important; }这只在样式上有效,但如果我在两者之间有文本,它将不会被删除。
我已经在c#中解决了这个问题,在主页上设置了一个条件。certain type { %> //here, or