我正在使用 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>