2011-07-20 44 views

回答

4

這可能與問題598「谷歌圖表工具:工具提示/線沒有顯示在Firefox上使用基本標籤」google-visualization-api-issues,當base tag與頁面位置不同時會再現。

一個可能的解決方案可能是使用jQuery來更改標籤的href屬性。

jQuery("base").attr('href', document.location); 
chart.draw(data, options); 
+0

有提供解決方法這確實不是一個函數與現在問題上的基本標記混亂: http://code.google.com/p/google-visualization-api-issues/issues/detail?id=598#c7 –

0

我認爲,這將是更好的補充基地標籤的框架圖,這樣

chart.draw(data, options); 

    jQuery(document).ready 
    (
     function() 
     { 
     jQuery('iframe[name^=Drawing_Frame]').contents().find('head').append('<base href="'+document.location+'"></base>') 
     } 
    ); 

它爲我

+0

從問題598:「現在繪圖基於內聯SVG並且不再是Drawing_Frame iframe元素。「 –