且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

引导菜单中的链接不起作用

更新时间:2023-12-03 09:42:04

如果我理解正确的话,您正试图根据您单击的链接切换不同的 div.您需要在每个 href= 中使用 #target 来引用目标元素,其中 target 是要打开的元素.

If I understand you correctly, you are trying to toogle different div's based on the link you click on. You need to reference the target element using #target in each href=, where target is the id of the element you want to open.

看看这个 jsfiddle.

如果这不是您想要的,那么请更具体地说明您要完成的任务.

If that's not what you are looking for then please be a bit more specific of what you are trying to accomplish.

根据评论更新:只需从链接中删除 data-toogle="tab" 并将 href="#home" 替换为href="/home" 或您想要导航到的任何路径.

Update based on comment: just remove data-toogle="tab" from the links and replace href="#home" with href="/home" or whatever path you want to navigate to.