Supports multiple browsers to reverse the css effect, and the browser image to reverse the css

Source: Internet
Author: User

Supports multiple browsers to reverse the css effect, and the browser image to reverse the css
Today, I received a request to obtain a symmetric image from an image. It was originally processed in the background, but in addition to technically difficult implementation, it also brings about the problem of resource consumption, which is equivalent to storing a copy for each graph. I only remember that css filters can be used in the past, but they are only valid in IE. Later I found a style compatible with multiple browsers.

Css style definition:

. Flip-horizontal {-moz-transform: scaleX (-1);-webkit-transform: scaleX (-1);-o-transform: scaleX (-1); transform: scaleX (-1); filter: fliph;/* IE */}. flip-vertical {-moz-transform: scaleY (-1);-webkit-transform: scaleY (-1);-o-transform: scaleY (-1); transform: scaleY (-1); filter: flipv;/* IE */}

Example of HTML reference:

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.