IE6/7/8-compatible CSS for background transparency

Source: Internet
Author: User

HTML code

<table cellspacing=0 cellpadding=0 width= "100%" Border=0><tbody><tr><td class=khdxz_intro> <P> This reporting period (2017/12/2-2017/12/5) seaborne coal freight has been re-spiked after a period of shock and reached its highest level since the July 10, 2012 index was released. December 5, the seaborne coal freight index OCFI reported 1530.24 points, the period of 2.66% upstream. In the molecular index, the East China Line index reported 1620.05 points, the period of 3.06% upstream, the South China Line index 1229.57 points, the period of 0.93% upstream. </P></TD></TR></TBODY></TABLE>

  

CSS Code

. khdxz_intro {  width:100%;  Background:rgba (0,0,0,0.5); / * IE9 The following browsers only write this method will cause the background to completely disappear *  / position:static;  zoom:1;  padding:30px;  Color: #fff;  font-size:14px;  Font-family: "Microsoft Jas Black";  line-height:25px;}   @media \0screen\,screen\9 {/* only supports IE6, 7, 8 */.khdxz_intro{background: #000;   Filter:alpha (OPACITY=50); position:static; / * IE6, 7, 8 can only set Position:static (default property), otherwise it will cause child elements to inherit alpha value * /*zoom:1; /* Activate IE6, 7 's Haslayout property, and let it read Alpha */ } . Khdxz_intro p{position:relative;  /* Set child elements as relative positioning, allowing child elements to not inherit alpha values * /}}. Khdxz_intro p{#fff;}

IE6/7/8-compatible CSS for background transparency

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.