Basic CSS skills-filters, basic css Filters

Source: Internet
Author: User
Tags transparent color

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.



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.