Example details using CSS to set an element translucent

Source: Internet
Author: User
Do you use CSS to set an element to be translucent? This article mainly introduces the use of CSS to set a translucent element of the relevant data, very good, with reference value, need to refer to the friend, hope to help everyone.


. opacity{  Filter:alpha (opacity=50);       /* IE */  -moz-opacity:0.5;              /* Old version Mozilla */  -khtml-opacity:0.5;              /* Old version Safari */  opacity:0.5;           /* Support Opacity's browser */}

Used to set an element to be translucent


. Filter = "Alpha (opacity=" + opacity + ")";    /* IE */. Mozopacity = (opacity/100);                 /* The old version of Mozilla * *. Khtmlopacity = (opacity/100);               /* Old Safari */. Opacity = (opacity/100);                    /* Support Opacity's browser */

Zoom picture on the Windows platform, may appear distorted image, use IE's proprietary command:


Img{-ms-interpolation-mode:bicubic;}

Have you learned it? Give it a try.

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.