首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Internet 9-11没有用颜色填充g元素(图表)

Internet 9-11没有用颜色填充g元素(图表)
EN

Stack Overflow用户
提问于 2014-06-18 17:56:50
回答 1查看 267关注 0票数 0

使用,高图表,我试图得到填充颜色,以正确地工作在IE上。在下面的图片中,你会看到背景是透明的(一点颜色都没有)。我需要它是黑色的,不透明度为0.8。

在火狐/Chrome中更改fill css属性将改变颜色。

我需要做什么才能让fill属性出现?

示例标记:

代码语言:javascript
复制
<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>

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-18 18:01:07

它正盯着我的脸。<rect>元素没有填充。改变它们,它就会像预期的那样工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24292138

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档