1

我正在使用 jquery 滑动标签。选项卡容器将调整到非活动内容的高度,但唯一的问题是 autoHeight jquery 函数不会调整到活动扩展内容。我试过这个插件,但没有运气。其他插件有什么建议吗?这是我的JSFIDDLE

谢谢你。

我的调整大小的方法不起作用:

<script>

    $(document).ready(function() {

        $('div#st_horizontal').slideTabs({
            // Options              
            contentAnim: 'slideH',
            autoHeight: true,
            contentAnimTime: 600,
            contentEasing: 'easeInOutExpo',
            tabsAnimTime: 300
        });

        var height = 50 // Set to the height you want
        $('.st_view').css('height', height+'px')

    });​

    </script>
4

1 回答 1

0

试试这个:使用 jquery 调整大小插件:这里

$('.st_tab_view').resize(function() {
        var $this = $(this);
        $this.closest('.st_view').css('height', $this.height());
    });
于 2012-06-30T18:47:47.303 回答