使用,高图表,我试图得到填充颜色,以正确地工作在IE上。在下面的图片中,你会看到背景是透明的(一点颜色都没有)。我需要它是黑色的,不透明度为0.8。
在火狐/Chrome中更改fill css属性将改变颜色。
我需要做什么才能让fill属性出现?
示例标记:
<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>

发布于 2014-06-18 18:01:07
它正盯着我的脸。<rect>元素没有填充。改变它们,它就会像预期的那样工作。
https://stackoverflow.com/questions/24292138
复制相似问题