【问题标题】:How do I get the jquery-tools tabs-accordion extend to the bottom of the page?如何让 jquery-tools tabs-accordion 扩展到页面底部?
【发布时间】:2012-08-09 19:01:54
【问题描述】:

我目前正在使用 jquery-tools 构建一个 ui,但我遇到了一个问题,即手风琴只能扩展到它需要的范围内。有什么办法可以让标签一直延伸到容器下方?我需要这样的东西:

+------------------------------------------+ (container)
|tab (open)                                |
|                                          |
|                                          |
|                                          |
|                                          |
|                                          |
|                                          |
|                                          |
|                                          |
|(end of content)                          |
|                                          |
|                                          |
|                                          |
|                                          |
|                                          |
|(tab)                                     |
|(tab)                                     |
|(tab)                                     |
+------------------------------------------+

我尝试将容器高度设置为 100%,标签高度设置为 100%,但标签的数量不是恒定的(将根据用户而变化)。有什么帮助吗?

【问题讨论】:

    标签: jquery css jquery-tools


    【解决方案1】:

    在手风琴选项中设置autoHeight: false。这应该允许您使用 css 等设置自己的高度。

    【讨论】:

      【解决方案2】:

      这在jQuery UI Documentation中有确切解释

      【讨论】:

      • 对不起,我误认为是 jquery-tabs。这是 jquery 工具
      猜你喜欢
      • 2012-04-02
      • 2012-11-06
      • 2013-07-05
      • 2018-02-02
      • 1970-01-01
      • 2014-07-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多