我正在尝试将ryenus解决方案(Why are Bootstrap tabs displaying tab-pane divs with incorrect widths when using highcharts?)应用于谷歌图表和Twitter引导程序选项卡,但我有一个问题,也许是因为我有不同版本的bootstrap,我不确定。我的bootstrap版本是3.3.7。
在我的bootstrap.css文件中,我找到了这一行:
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
答案 0 :(得分:1)
经过大量搜索后我尝试了这个并解决了我的问题。
$("a[href='#C']").on('shown.bs.tab', function (e) {
google.load('visualization', '1', {
packages: ['timeline'],
callback: drawChartC
});
});