简体   繁体   中英

CSS scaling is not working properly in IE10

I have tried to scale the following SVG path. This works fine in chrome and firefox. But in IE10 it is not working. Any suggestions? Please find my code below.

 .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> 

Thanks in advance.

If you checkout browser compatibility from Can I Use for SVG you will found something like this screenshot

That's mean IE10 does not support <svg></svg> .

浏览器兼容性

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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