This solution perfectly solves the problem that IE8 is not compatible with rgba (), and solves the problem that ie8 is not compatible with rgba

Source: Internet
Author: User

This solution perfectly solves the problem that IE8 is not compatible with rgba (), and solves the problem that ie8 is not compatible with rgba

Rgba () is a new property of css3, so IE8 and the following browsers are not compatible. What should I do? Finally, I found a solution.

Solution

Let's first explain the following rgba

Rgba:

The meaning of rgba. r indicates red, g indicates green, B Indicates blue, and a indicates transparency.

Rgba (0.5, 0,. 5) indicates black and the transparency is.

To solve the transparency problem in IE8, you can add the following sentence:

Filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = #7f000000, endColorstr = #7f000000);/* IE8 support */
 

This sentence is used for gradient, but there is no gradient effect here, So startColorstr and endColorstr are set to the same color.

Here #7f000000 ,#7fTransparency,000000Color. The following table shows the transparency:

The above Article perfectly solves the problem of incompatibility with rgba () in IE8, which is all the content shared by Alibaba Cloud. I hope to give you a reference, and I hope you can also provide more support for helping customers.

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.