With the development of Web design technology, people are not satisfied with some of the original HTML tags, but want to be able to add some multimedia properties for the page, such as filter and gradient effects. The rapid development of CSS technology has made these needs a reality. From now on, I want to introduce a new CSS Extension Section: Filter Properties ). Using this technology, you can add visual filters and conversion effects to a standard HTML element, sample, text container, and other objects. The former is the basis for filters and gradient effects, because the latter is the constant change of filter effects and the replacement of demo effects. When filters and gradient effects are combined into a basic script applet, web designers can have a powerful tool for creating dynamic interaction documents. That is, css filter + SCRIPT, which indicates that the SCRIPT (SCRIPT language) is required for creating dynamic documents.
Normal image |
Which of the images after the blur effect processing is more beautiful? What do you think! It is easy to achieve this effect. Just add something.
|
Try it on your own and see if it is false! The simple syntax is as follows: Filter: filtername (parameters): filter Name (parameter) |
|
|
Visual filter attributes can only be used on HTML control elements. The so-called HTML space elements define a rectangular space on the page, which can be displayed in a browser window. The following lists the valid HTML controls and their descriptions. Note: Unfortunately, only IE4.0 and above are supported. If it is another browser, then .......
Element |
Description |
BODY |
The main element of the webpage document. All visible ranges are within the <BODY> element. |
BUTTON |
Form field buttons can be in the form of "Send (submit)" or "reset (reset )" |
DIV |
Defines an area on the web page. The height, width, or absolute position of this area is known. |
IMG |
Specifies the image source by specifying the "src" attribute. |
INPUT |
Input form field |
MARQUEE |
Move subtitle Effect |
SPAN |
Defines an area on the web page. The height, width, or absolute position of this area is known. |
TABLE |
Table |
TD |
Table data cell |
TEXTAREA |
Text area |
TFOOT |
Multi-line Input text box |
TH |
Table title Cell |
THEAD |
Table title |
TR |
Table row |
Filter Attribute Table supported above IE4.0
Filter Effect |
Description |
Alpha |
Set transparency |
Blru |
Create a blur effect |
Chroma |
Set the specified color to transparent |
DropShadow |
Creates an offset image profile, that is, a projection shadow. |
FlipH |
Horizontal reversal |
FlipV |
Vertical Inversion |
Glow |
Adds light effects to the outer boundary of an object. |
Grayscale |
Reduces the color of an image. |
Invert |
Completely invert the color, saturation, and brightness values to create a negative effect. |
Light |
Light Projection on an object |
Mask |
Create a transparent film for an object |
Shadow |
Create a solid contour of an object, that is, shadow effect. |
Wave |
Use sine ripple on the X and Y axes to disrupt the image |
Xray |
Show only the outlines of Objects |
|