Div background translucent text non-translucent Style

Source: Internet
Author: User

IV. The background is translucent, and the words in the DIV are not translucent.
The Code is as follows:


<Body bgcolor = "#336699" type = "codeph" text = "/codeph">
<Div style = "filter: alpha (opacity = 50); Background: # ffffff; width: 600;"> <span style = "color: yellow">


The layer background is translucent, And the font color is also translucent.

The Code is as follows:
</Span> </div>
<Div style = "filter: alpha (opacity = 50); Background: # ffffff; width: 600"> <span style = "position: relative; color: yellow "> translucent layer background, non-translucent font color </span> & lt;/div>


* ****** The layer with filter must have the width attribute; otherwise, the filter is invalid. ********

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 ripple 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;
Negative 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 );
Soft Edge Filter: alpha (opacity = 100, finishopacity = 0, style = 2

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.