普通网友 2017-03-13 03:20
浏览 65

如何链接到特定选项卡

I'm trying to link to specific tabs using flickity.css http://flickity.metafizzy.co/ and i'm having trouble. I know this has been a common problem using php but is there a known method (possibly using javascript) to create unique urls for all of the tabs created inside of "nav nav-tabs"? I'm trying to use a redirect to link to a certain tab after an event is completed. Using php would there be a way to path to that specific event?

<ul class="nav nav-tabs" id = "tab-style">
     <li class = "active"><a data-toggle = "tab" href = "#profile"></li>
     <li><a data-toggle = "tab" href = "#friends"></a></li> 
     <li><a data-toggle = "tab" href = "#games"></a></li>
     <li><a data-toggle = "tab" href = "#context"></a></li> 
</ul>

That is the code for creating the tabs all inside the same html file. The divs are created in the standard way. For example.

<div id = "profile" class "tab-pane fade in active">
     tab contents
</div>
<div id="friends" class="tab-pane fade">
</div>

and so on...

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入