简体   繁体   English

我在管理面板中有bootstrap侧边栏菜单,当我单击并获取链接时,有两个项目处于活动状态,如图片所示,为什么?

[英]i have bootstrap Sidebar menu in my admin panel, when i click and fetch a link then two items are active , like in picture, why?

I have bootstrap Sidebar menu in my admin panel, when I click and fetch a link then two items are active, like in the picture, why? 我在管理面板中有Bootstrap Sidebar菜单,当我单击并获取链接时,有两个项目处于活动状态,如图所示,为什么?

在此处输入图片说明

在此处输入图片说明

Check the li tag to see if the tag contains active option in distributor's package page. 检查li标签以查看该标签是否在分销商的包装页中包含有效选项。 You need active on current page only & not on distrubutor's page when you are on dp page 在dp页面上时,您仅需要在当前页面上活动,而在distrubutor的页面上则不需要

Adding more to that answer, 为该答案添加更多内容,

<ul class="nav">
   <li class="nav-item">
      <a class="nav-link active" href="#">Active</a>
   </li>
   <li class="nav-item">
      <a class="nav-link" href="#">Link</a>
   </li>
</ul>

Keeping a list item 'active' would mean, that item would be always selected. 保持列表项为“活动”将意味着该项将始终处于选中状态。 Check the list item class for this. 为此,请检查列表项类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么当我点击 burger div 时我的侧边栏没有出现 - Why is my sidebar not appearing when i click on burger div 引导侧边栏导航菜单滚动到活动面板标题的顶部 - bootstrap sidebar nav menu scroll to top of active panel heading 我在Codeigniter中的侧边栏菜单活动类中需要JavaScript - i need JavaScript for my sidebar menu active class in codeigniter 我想用javascript在我的侧边栏添加和删除活动链接 - I wanna add and remove active link on my sidebar with javascript 为什么我的引导侧边栏在按钮单击时没有折叠? - Why is my bootstrap sidebar not collapsing on button click? 当我单击链接时,我正在尝试关闭 React Bootstrap 中的 offcanvas 菜单 - I'm trying to close the offcanvas menu in React Bootstrap when I click a link 为什么单击菜单图标时我的正常导航栏消失了 - Why is my normal navbar disappearing when I click on the menu icon 为什么我的汉堡包菜单在我点击时没有打开? - Why is my hamburger menu not opening when I click on it? 当我单击可折叠菜单时,为什么它没有展开? - Why doesn't my collapsible menu expand when I click on it? 除非我刷新,否则 React 侧边栏菜单项不会更新活动状态 - React Sidebar menu items do not update active state unless i refresh
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM