search
HomeWeb Front-endHTML Tutorialie filter collection_HTML/Xhtml_web page production

IE gave us a headache in the early stage of development. It is different. It does not support what others support, and it also has things that others do not support. Today I will briefly introduce one of its features - filters.

 
 CSS filters are mainly used to achieve various special effects on images. It plays a very magical role in website production. The website can be made more beautiful through CSS filters. In CSS, the filter attribute represents the filter. It can set the filter effect of text, pictures and tables.
Syntax: STYLE={"filter:filtername(fparameter1,fparameter2...)}
Note: Filtername is the name of the filter, fparameter1, fparameter2, etc. are the parameters of the filter.
13 types of CSS filters Mirror effect
1. Filter: chroma - Make special color transparent.
Syntax: STYLE="filter:Chroma(Color=color)"
Annotation: color:#rrggbb format, any.
2. Filter: blur - Create a high-speed movement effect, that is, a blur effect.
Syntax: STYLE="filter:Blur(Add=add,Direction=direction,Strength=strength)"
Annotation: Add : Generally 1, or 0; Direction: Angle, 0-315 degrees, the step is 45 degrees; Strength: The value of the effect growth, usually 5 is enough.
3. Filter: FlipV--Create a vertical mirror image .
Syntax: STYLE="filter:FlipV"
4. Filter: alpha--Set transparency level
Syntax: STYLE="filter:Alpha(Opacity=opacity,FinishOpacity=finishopacity,Style=style ,StartX = startX, StartY = startY, FinishX = finish Style: 1 or 2 or 3; StartX: any value; StartY: any value
5. Filter: FlipH - Create a horizontal mirror image.
Syntax: STYLE="filter:FlipH"
6. Filter:glow--Add glow to the outside of nearby objects.
Syntax: STYLE="filter:Glow(Color=color,Strength=strength)"
Annotation: Color: glow color; Strength: intensity ( 0-100)
7. Filter:mask--Create a transparent mask on the object.
Syntax: STYLE="filter:Mask(Color=color)"
8. Filter: Filter :Xray--make the object look like it is illuminated by x-rays.
Syntax: STYLE="filter: :Invert"
10. Filter: DropShadow -- Create a fixed shadow of the object.
Syntax: STYLE="filter:DropShadow(Color=color,OffX=offX,OffY=offY,Positive=positive)"
Marking: Color: #rrggbb format, any; Offx: X-axis deviation value; Offy: Y-axis deviation value; Positive: 1 or 0.
11. Filter: gray--turn the picture into grayscale.
Syntax: STYLE="filter:Gray"
12. Filter: wave - ripple effect.
Syntax: filter:Wave(Add=add,Freq=freq,LightStrength=strength,Phase=phase, Strength=strength)
Annotation: Add: Generally 1, or 0; Freq: deformation value; LightStrength: deformation percentage; Phase: angle deformation percentage; Strength: deformation strength.
13.shadow--Create offset Fixed shadow.
Syntax: filter:Shadow(Color=color,Direction=direction)
Annotation: Color: #rrggbb format; Direction: angle, 0-315 degrees, step size is 45 degrees.
In One thing you should pay attention to when using CSS filters is that in current website layouts, filters are often attached to divs. If you simply set an id for the div in the HTML code, the filter will not be effective. , this id attribute must be defined in style or css, otherwise it will not work.



With just one sentence of code, the images can be switched freely like PPT documents when making the website. It is very simple! Before conversion, we must first understand three basic codes:
Rotation: style="filter: progid:DXImageTransform.Microsoft.BasicImage(rotation:1)"
Remove background color: style="filter:Chroma( Color=#000000)"
Set gradient color: style="position:relative;left:0px;top:0px;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#ff0000,endcolorstr=#ffff00,gradientType= 1)"
Wonderful review: A collection of CSS filter effects for website production
The following is a collection of image conversion filters, I hope it can help friends~! ! !
Random transformation: progid:DXImageTransform.Microsoft.RevealTrans(enabled=true,transition=23)
Square gradient: progid:DXImageTransform.Microsoft.Iris(irisstyle=square,motion=in)
Square gradient Large: progid:DXImageTransform.Microsoft.Iris(irisstyle=square,motion=out)
Cross-increasingly small: progid:DXImageTransform.Microsoft.Iris(irisstyle=cross,motion=in)
Cross-increasingly large: progid: DXImageTransform.Microsoft.Iris(irisstyle=cross,motion=out)
Star shape getting bigger: progid:DXImageTransform.Microsoft.Iris(irisstyle=star,motion=out)
Star shape getting smaller: progid:DXImageTransform. Microsoft.Iris(irisstyle=star,motion=in)
The circle gets bigger: progid:DXImageTransform.Microsoft.Iris(irisstyle=circle,motion=out)
The circle gets smaller: progid:DXImageTransform.Microsoft. Iris(irisstyle=circle,motion=in)
The diamond becomes smaller: progid:DXImageTransform.Microsoft.Iris(irisstyle=diamond,motion=in)
The diamond becomes larger: progid:DXImageTransform.Microsoft.Iris(irisstyle= diamond,motion=out)
The plus sign gets bigger: progid:DXImageTransform.Microsoft.Iris(irisstyle=plus,motion=out)
The plus sign gets smaller: progid:DXImageTransform.Microsoft.Iris(irisstyle=plus, motion=in)
 Erasing upward: progid:DXImageTransform.Microsoft.Blinds(bands=1,direction=up)
 Erasing downward: progid:DXImageTransform.Microsoft.Blinds(bands=1,direction=down )
 Erasing to the left: progid:DXImageTransform.Microsoft.Blinds(bands=1,direction=left)
 Erasing to the right: progid:DXImageTransform.Microsoft.Blinds(bands=1,direction=right)
Shrink the left and right middle parts: progid:DXImageTransform.Microsoft.Barn(motion=in,orientation=vertical)
Randomly dissolve: progid:DXImageTransform.Microsoft.RandomDissolve(enable=true)
Expand the middle part up and down: progid:DXImageTransform .Microsoft.Barn(motion=out,orientation=horizontal)
Expand the middle left and right: progid:DXImageTransform.Microsoft.Barn(motion=out,orientation=vertical)
Random horizontal lines: progid:DXImageTransform.Microsoft.RandomBars( orientation=horizontal)
Random vertical lines: progid:DXImageTransform.Microsoft.RandomBars(orientation=vertical)
Upper and lower middle shrink: progid:DXImageTransform.Microsoft.Barn(motion=in, orientation=horizontal)
Standard Gradient transformation: BlendTrans(enabled=true,percent=10)
Adjustable gradient transformation: progid:DXImageTransform.Microsoft.Fade(enabled=ture,overlap=1.0)
Insert to the lower right: progid:DXImageTransform.Microsoft .Inset(enabled=ture)
Hide stretch: progid:DXImageTransform.Microsoft.Stretch(stretchstyle=hide)
Push stretch: progid:DXImageTransform.Microsoft.Stretch(stretchstyle=push)
Rotation stretch: progid:DXImageTransform.Microsoft.Stretch(stretchstyle=spin)
Counter clock: progid:DXImageTransform.Microsoft.RadialWipe(wipestyle=wedge)
Radiation ray: progid:DXImageTransform.Microsoft.RadialWipe(wipestyle=radial)
Mosaic effect: progid:DXImageTransform.Microsoft.Pixelate(maxSquare=20)
Clock: progid:DXImageTransform.Microsoft.RadialWipe(wipestyle=clock)
Ladder lower left: progid:DXImageTransform.Microsoft.Strips(motion=leftdown )
The upper right of the ladder: progid:DXImageTransform.Microsoft.Strips(motion=rightup)
The upper left of the ladder: progid:DXImageTransform.Microsoft.Strips(motion=leftup)
The lower right of the ladder: progid:DXImageTransform.Microsoft. Strips(motion=rightdown)
Spiral shrinkage: progid:DXImageTransform.Microsoft.Spiral(gridSizeX=20,gridSizeY=20)
Windmill rotation: progid:DXImageTransform.Microsoft.Wheel(spokes=20)
Zigzag: progid:DXImageTransform.Microsoft.Zigzag(gridSizeX=20,gridSizeY=20)
H blinds: progid:DXImageTransform.Microsoft.Blinds(bands=6, direction=down)
: progid:DXImageTransform. Microsoft.Blinds(bands=6,direction=up)
 :progid:DXImageTransform.Microsoft.Blinds(bands=60,direction=down)
 :progid:DXImageTransform.Microsoft.Blinds(bands=60,direction= up)
 V blinds: progid:DXImageTransform.Microsoft.Blinds(bands=6,direction=right)
 :progid:DXImageTransform.Microsoft.Blinds(bands=6,direction=left)
  :progid:DXImageTransform.Microsoft.Blinds(bands=60,direction=right)
  :progid:DXImageTransform.Microsoft.Blinds(bands=60,direction=left)
  交换式幻灯片:progid:DXImageTransform.Microsoft.Slide(slidestyle=swap,bands=1)
  :progid:DXImageTransform.Microsoft.Slide(slidestyle=swap,bands=20)
  推动式幻灯片:progid:DXImageTransform.Microsoft.Slide(slidestyle=push,bands=1)
  :progid:DXImageTransform.Microsoft.Slide(slidestyle=push,bands=20)
  隐藏式幻灯片:progid:DXImageTransform.Microsoft.Slide(slidestyle=hide,bands=1)
  :progid:DXImageTransform.Microsoft.Slide(slidestyle=hide,bands=20)
  模糊推进:progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.5,wipestyle=0,motion=forward)
  :progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.5,wipestyle=0,motion=reverse)
  :progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.5,wipestyle=1,motion=forward)
  :progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.5,wipestyle=1,motion=reverse)
  纵向棋盘:progid:DXImageTransform.Microsoft.CheckerBoard(direction=right,squaresX=12,squaresY=12)
  :progid:DXImageTransform.Microsoft.CheckerBoard(direction=left,squaresX=12,squaresY=12)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=right,squaresX=2,squaresY=2)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=left,squaresX=2,squaresY=2)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=right,squaresX=60,squaresY=60)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=left,squaresX=60,squaresY=60)
  横向棋盘:progid:DXImageTransform.Microsoft.CheckerBoard(direction=down,squaresX=12,squaresY=12)
  :progid:DXImageTransform.Microsoft.CheckerBoard(direction=up,squaresX=12,squaresY=12)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=down,squaresX=2,squaresY=2)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=up,squaresX=2,squaresY=2)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=down,squaresX=60,squaresY=60)
  :progid:DXImageTransform.Microsoft.Checkerboard(direction=up,squaresX=60,squaresY=60)

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools