首页 > 解决方案 > 使用 jQuery UI 选项卡功能,为按钮获取多行但应该只有一行

问题描述

使用 jQuery UI 选项卡,并希望根据按钮的数量显示单行选项卡,但显示多行。这与 Bootstrap 网格一起使用,这可能是导致问题的原因。

当只需要一个时多个选项卡行的示例

使用:

HTML 定义:

<div id="informationSourceTabs">
    <ul>
        <li><a href="#customerNameRefineryTab">Customer Name Refinery</a></li>
        <li><a href="#customerSSOT_APISourceTag">Customer Registry</a></li>
    </ul>
    <div id="customerNameRefineryTab">

        ....

    </div>
    <div id="customerSSOT_APISourceTag">

        ....

    </div>
</div>

Javascript:

$("#informationSourceTabs").tabs();

比较直接的东西。任何想法都会非常有帮助。

标签: jquery-uibootstrap-4

解决方案


推荐阅读