CSS Filter Demonstration (filter) with source code (static filter) _css/html

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" > <ptml> <pead> <meta http-equiv= " Content-type "content=" text/html; charset=gb2312 "> <title>filter (CSS Filter) </title> <style type=" Text/css "> body {margin:0px; padding:0px; } table {font-size:12px; border:1px solid #0000FF; } tr,td {padding:0px; border:1px solid #0000FF; } </style> </pead> <body> <strong>filter Types of visual filters </strong> <table> <tr> &LT;TD Width=80>alpha (transparency) </td> <td Width=80>blur (Blur) </td> <td WIDTH=80&GT;CHR OMA (Specify color transparency) </td> &LT;TD Width=80>dropshadow (opaque shadow) </td> <td WIDTH=80&GT;FLIPH&AMP;FLIPV ( Flip) </td> <td width=80>glow (Edge halo) </td> <td width=80>gray (de-color) </td> &lt TD Width=80>invert (negative effect) </td> <td Width=80>mask (Matte effect) </td> &LT;TD widTh=80>filter:shadow (Shadow) </td> <td width=80>wave (Wave) </td> <td Width=80>xray (contour highlighting) </td> </tr> <tr> <td height=140></td> <td></td> <td></td> <td></td> <td></td> <td></td> &L t;td></td> <td></td> <td></td> <td></td> < td></td> <td></td> </tr> </table> <strong>Alpha:</strong> <t able> <tr> <td width=200> original picture </td> <td width=200> start Transparency (opacity): 100 End Transparency (fi nishopacity): 0 start position (startx,starty):(0,0) End position (finishx,finishy):(50,50) </td> <td width=200> Start Transparency ( Opacity): 70 End Transparency (finishopacity): 20 start position (startx,starty):(0,0) End position (finishx,finishy):(50,50) </td> </tr> <tr> <td></td> <td></td> <td> </tr> </table> <strong>Blur:</strong> <table> <tr> <td width=200> original picture </td> <td width=200> Show original picture and Blur in 270 degree direction 20px</td> &LT;TD width=200> does not display the original picture, and is blurred in 90 degree direction 20px</td> </tr> <tr> <t d></td> <td></td> <td></td> </tr> </table> <strong&gt ; chroma</strong> <table> <tr> <td width=200> original pictures </td> <td WIDTH=200&G T Chroma the specified font color (I am CCHXP) becomes transparent </td> </tr> <tr> <td></td> <td></ td> </tr> </table> <strong>DropShadow</strong> <table> <tr> <t D width=200> original picture </td> &LT;TD width=200> Set the shadow color to light green, move to the right 5px, move down 5px, and the shadow is opaque. </td> <td width=200> Set shadow color to PowderRed, move left 5px, move up 5px, and the shadow is opaque. </td> </tr> <tr> <td></td> <td></td> <td>& lt;/td> </tr> </table> <strong>FlipH&FlipV</strong> <table> <tr> &LT;TD width=200> Original picture </td> <td width=200> Set Picture horizontal flip fliph</td> <td width=200> set Place picture Vertical Flip flipv</td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> <strong>Glow</strong> <table> <tr> &LT;TD width=200> Original picture </td> <td width=200> Set Picture glow color yellow, strength 10</td> <td width=200 > Set the image glow color to red, strength 20</td> </tr> <tr> <td></td> <td></td&gt ; <td></td> </tr> </table> <strong>Gray</strong> <table> <tr> <td width=200> Original picture </td> <td width=200> Remove the color of the picture to achieve the gray effect </td> </tr& Gt <tr> <td></td> <td></td> </tr> </table> <strong>inver t</strong> <table> <tr> <td width=200> original picture </td> <td width=200> setup diagram Film color negative effect </td> </tr> <tr> <td></td> <td></td> </tr > </table> <strong>Mask</strong> <table> <tr> <td width=200> original picture </ Td> &LT;TD width=200> Set the screen color of the picture to Blue </td> </tr> <tr> <td></td> <td></td> </tr> </table> <strong>Shadow</strong> <table> <tr& Gt &LT;TD width=200> Original picture </td> <td width=200> set picture shadow color green, 225 degrees </td> <td width=200&gt ; set diagramShadow color is red, 135 degree direction </td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> <strong>Wave</strong> <table> <tr> &LT;TD width=200> Original picture </td> <td width=200> does not show the original picture, there are 5 waves with 20 pixels of amplitude, the intensity of the light is 30, the wave starts at 50&LT;/TD&G T &LT;TD width=200> shows the original picture, with 3 waves with 50 pixels of amplitude, with a light intensity of 50 and a wave starting position of 100</td> </tr> <tr> <td>& lt;/td> <td></td> <td></td> </tr> </table> <strong>xray& lt;/strong> <table> <tr> <td width=200> original pictures </td> <td width=200>x photo Effects </td> </tr> <tr> <td></td> <td></td> </tr> & lt;/table> <strong>gray&invert&xray comparison </strong> <table> <tr> <td width= 200> Original picture &Lt;/td> <td width=200>gray effects </td> <td width=200>invert effects </td> <td wid Th=200>xray effects </td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </table> </body> </ptml>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
  • 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.