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