Css transparency compatibility with IE, Firefox, Chrome, and Safari code

Source: Internet
Author: User
Tags html tags

The code is as follows:

The code is as follows: Copy code

. Transparent {
Filter: alpha (opacity = 60);/* supports IE browsers */
-Moz-opacity: 0.60;/* supports FireFox */
Opacity: 0.60;/* supports Chrome, Opera, Safari, and other browsers */
}

The above test is compatible with css to achieve transparency (compatible with IE6, IE7, Firefox2.0). Others are also compatible with common sense. You can test them by yourself.

If the control div is transparent, try the following method:


We can use a CSS filter to set the filter effect on some HTML tags.

Example:

• Black/White photo filter: gray;
• X-ray filter: Xray;
• Pneumatic fuzzy filter: blur (add = true, direction = 45, strength = 30 );
• Sine Wave filter: Wave (Add = 0, Freq = 60, LightStrength = 1, Phase = 0, Strength = 3 );
• Translucent filter: Alpha (Opacity = 50 );
• Linear transparent filter: Alpha (Opacity = 0, FinishOpacity = 100, Style = 1, StartX = 0, StartY = 0, FinishX = 100, FinishY = 140 );
• Radioactive transparent filter: Alpha (Opacity = 10, FinishOpacity = 100, Style = 2, StartX = 30, StartY = 30, FinishX = 200, FinishY = 200 );
• White transparent filter: Chroma (Color = # FFFFFF );
• Color filter: grays;
• Filter: invert;
• Left-right flip filter: fliph;
• Vertical Flip filter: flipv;
• Projection effect filter: progid: dXImageTransform. Microsoft. DropShadow (color = # cccccc, offX = 5, offY = 5, positives = true );
• Mosaic filter: progid: dXImageTransform. Microsoft. Pixelate (maxsquare = 3 );
• Luminous effect filter: progid: dXImageTransform. Microsoft. Glow (color = # cccccc, Strength = 5 );
• Flexible edge filter: alpha (opacity = 100, finishOpacity = 0, style = 2

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.