饼图未在Chrome / Firefox中显示

时间:2017-08-04 10:11:30

标签: crystal-reports

我以HTML格式从Crystal Report生成饼图,以便在浏览器中显示。但生成的HTML会在IE浏览器中显示饼图,而不会在Chrome,Firefox和Opera等其他浏览器中显示。因为水晶报告中生成的HTML生成HTML以下,并且那些浏览器不支持filer: progid:DXImageTransform.Microsoft.AlphaImageLoader css属性。

从Crystal Report生成的HTML:

<html>
   <head>
      <meta name="Author" content="Crystal Reports 11.0">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   </head>
   <body>
      <style>    div {position:absolute; z-index:25}
         a {text-decoration:none}
         a img {border-style:none; border-width:0}
         .adi81ru1gam9ps-0 {border-color:#000000;border-left-width:0;border-right-width:0;border-top-width:0;border-bottom-width:0;}
      </style>
      <div style="z-index:3;clip:rect(0px,1008px,634px,0px);top:0px;left:0px;width:1008px;height:634px;"></div>
      <div class="adi81ru1gam9ps-0" nowrap="true" style="z-index:15;top:0px;left:2px;width:954px;height:619px;">
         <div style="width:954px;height:619px;display:inline-block;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='{AB1B3FFD-B011-40CB-A39A-E1CE1EC51450}{C96C12A1-A23A-41FA-8373-D35B5496BDE2}.png');"></div>
      </div>
   </body>
</html>

要在Chrome或其他主流浏览器中使用此功能,我必须在DIV元素中添加以下CSS:

 background:url(image url);  
-moz-background-size:cover; 
-webkit-background-size:cover; 
 background-size:cover;

我们对从水晶报告生成的HTML没有任何控制权。我该如何解决这个问题?

0 个答案:

没有答案
相关问题