简体   繁体   English

Internet Explorer 9-11不会用颜色填充g元素(高图)

[英]Internet Explorer 9-11 does not fill g element with color (highcharts)

Using, highcharts I'm trying to get the fill color to work properly on IE. 使用highcharts,我试图使填充颜色在IE上正常工作。 In the picture below, you'll see the background is transparent (no color at all). 在下面的图片中,您将看到背景是透明的(根本没有颜色)。 I need it to be black with an opacity of 0.8. 我需要它是不透明度为0.8的黑色。

Changing the fill css property in Firefox/Chrome will change the color. 在Firefox / Chrome中更改fill css属性将更改颜色。

What do I need to do to get the fill property to show up? 我需要怎么做才能使fill属性显示出来?

Example Markup: 标记示例:

<g class="highcharts-tooltip" zIndex="8" style="cursor:default;padding:0;white-space:nowrap;" visibility="hidden" opacity="0" transform="translate(295,43)">
   <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="92" height="46.046875" isShadow="true" stroke="black" stroke-opacity="0.049999999999999996" stroke-width="5" transform="translate(1, 1)"></rect>
   <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="92" height="46.046875" isShadow="true" stroke="black" stroke-opacity="0.09999999999999999" stroke-width="3" transform="translate(1, 1)"></rect>
   <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="92" height="46.046875" isShadow="true" stroke="black" stroke-opacity="0.15" stroke-width="1" transform="translate(1, 1)"></rect>
   <rect rx="3" ry="3" fill="0.5" x="0.5" y="0.5" width="92" height="46.046875" stroke="#e87c05" stroke-width="1" anchorX="104.5" anchorY="31"></rect>
   <text x="8" y="21" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;color:#ffffff;fill:#ffffff;" zIndex="1">
      <tspan style="fill:#acacac" x="8">Excellent</tspan>
      <tspan style="font-weight:bold" x="8" dy="16">91</tspan>
      <tspan dx="0"> Responses</tspan>
   </text>
</g>

在此处输入图片说明

It was staring me right in the face. 它正盯着我。 The <rect> elements have a fill of none. <rect>元素不填任何内容。 Change those, and it works as expected. 更改这些,它会按预期工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM