Use CSS to manage the transparency of pictures in Web pages across browsers

Source: Internet
Author: User
css| Browser | transparent | Web page

In the Web page production process, we will want to use CSS to manage the transparency of the picture, but the use of CSS to manage the picture according to different browsers to set. This tutorial is just the tip of the iceberg to remind you that when you use DIV+CSS to make a Web page, the end result should be tested at least in two different browsers.

This tutorial is for the most current browsers to explain.

Firefox:

In Firefox, style sheet CSS is-moz-opacity:xx to show transparency, XX is a number between 0 to 1 code as follows:

Effect (if you use Firefox should see):

Ie:

In IE, style sheet CSS is implemented with filters: Filter:alpha (opacity=xx) where xx is a number from 0 to 100. The code is as follows:

The effect is as follows:

The code that can be implemented in both Firefox and IE is as follows:

The effect is as follows:



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.