【发布时间】:2017-05-08 23:54:15
【问题描述】:
我已尝试缩放以下 SVG 路径。这在 chrome 和 firefox 中运行良好。但在 IE10 中它不起作用。有什么建议?请在下面找到我的代码。
.two {
transition: all 2s ease-in-out 0.5s;
-webkit-transition: all 2s ease-in-out 0.5s;
}
#scale {
height: 150px;
width: 100px;
text-align: center;
margin: 0 auto;
}
#scale {
border: 1px blue solid;
}
.grow:hover {
transform: scale(2.0);
/*-ms-transform: scale(2.0);*/
-webkit-transform: scale(2.0);
}
<svg width="220" height="220">
<g transform="translate(110,110)">
<path d="M0 -43.3 50 43.3 -50 43.3Z" fill="yellow" stroke="blue" stroke-width="2"
id="scale" class="grow two" />
</g>
</svg>
提前致谢。
【问题讨论】:
-
正如您在实验中看到的那样,IE 不支持对 SVG 内容进行 CSS 转换。
标签: javascript html css internet-explorer svg