[英]Object.style.filter=“Flipv” its working fine in Internet explorer. How can i do in Firefox?
I want to convert the to flipVertical. 我想将其转换为flipVertical。 I tried the object.style.filter="Flipv"
its not working in firefox. 我尝试了object.style.filter="Flipv"
在Firefox中不起作用。 Please make it..... 请做.....
Filters are implemented in only Internet Explorer. 筛选器仅在Internet Explorer中实现。
Instead, you can use transform
from CSS3: http://www.w3.org/TR/css3-2d-transforms/ 相反,您可以使用来自CSS3的transform
: http : //www.w3.org/TR/css3-2d-transforms/
In this case, you need transform: scaleY(-1)
. 在这种情况下,您需要transform: scaleY(-1)
。
A JavaScript example for Firefox: Firefox的JavaScript示例:
document.getElementById('x').style.MozTransform = "scaleY(-1)";
CSS3 transforms are also supported in all modern browsers . 所有现代浏览器也都支持 CSS3转换。
您也可以使用firefox的CANVAS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.