Basic CSS skills-filters, basic css Filters
The basic usage of the last blog post. This blog will introduce the filter and image processing in CSS. When you open a webpage, especially on the official websites of some companies, the homepage is always very gorgeous. I thought it was a combination of flash or many pictures. Now I have learned CSS filters, I want to see the following, and you can also make some very gorgeous pages.
CSS filters are not plug-ins of the browser and do not comply with CSS standards, however, Microsoft specifically developed and integrated a set of functions in the IE browser to enhance the browsing function. As the browser has a wide range of use, CSS filters are also favored by the majority of designers, the identifier of the CSS filter is the same as that of other CSS statements on the filter body.
I. Filter attributes
In fact, the filter is a simple transparency, but it is such a simple transparency, but because of its very good effect, so the application frequency is very high.
1. Alpha Channel
. Alpha {filter: alpha (opacity = 50) // indicates that the transparency is 50%}
2. Blur (Fuzzy)
<span style="font-size:14px;">.blur{ filter:progid:DXImageTransform.Morcrosoft.blur(pixelradius=4,makeshadow=false);}</span>
3. Transparent color
.chorma{ filter:chromalcolor=FF6800;}
4. Flip
. Flip1 {filter: fliph;/* horizontal flip */}. flip3 {filter: flipv;/* vertical flip */}. flip3 {filter: flipv fliph;/* flip horizontally and vertically */}
2. Filter Application
We have seen the reflection in the water. It looks very nice. So today we will use this filter to implement our filters in the water.
<Html>
It looks pretty, that is, a few simple attributes can implement the Photoshop function, and can also be changed according to our requirements.
3. Summary
Of course, he used filter in the ID, but in non-ie browsers, he used opacity, and his value ranges from 0 ~ 1, the specific writing method is no longer here, just change filter: alpha (opacity = 60) to opacity = 0.6. Although this filter is very powerful, it does not mean that PhotoShop is not good. The two have their own advantages and disadvantages. Photoshop can still create images for us.