简体   繁体   中英

Object.style.filter=“Flipv” its working fine in Internet explorer. How can i do in Firefox?

I want to convert the to flipVertical. I tried the object.style.filter="Flipv" its not working in firefox. Please make it.....

Filters are implemented in only Internet Explorer.

Instead, you can use transform from CSS3: http://www.w3.org/TR/css3-2d-transforms/

In this case, you need transform: scaleY(-1) .

A JavaScript example for Firefox:

document.getElementById('x').style.MozTransform = "scaleY(-1)";

CSS3 transforms are also supported in all modern browsers .

您也可以使用firefox的CANVAS

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