CSS: The ultimate method of transparent background color and opaque content! Compatible with all browsers

Source: Internet
Author: User
Without too many texts, you can directly view the results.

<Br/> <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" <br/> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br/> <HTML xmlns = "http://www.w3.org/1999/xhtml"> <br /> <pead> <br/> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> <br/> <title> CSS: The ultimate method of transparent background color and opaque content! Compatible with all browsers </title> <br/> <style type = "text/CSS"> <br/> * {margin: 0; padding: 0 ;} <br/> body {Background: # 3f3f3f; font-family: "", Arial ;}< br/> H1, H2, H3, H4, H5, h6 {font-weight: normal; font-size: 100% ;}< br/> IMG {border: None 0 ;}< br/># Bos {width: 820px; Background: # FFF; margin: 0 auto ;}< br/> # Bos ul {ZOOM: 1; overflow: hidden; Background: # FFF; padding: 5px 0 5px 5px ;} <br/> # Bos ul Li {width: 260px; position: relative; overflow: hidden; float: Left; margin: 5px; Background: # fff ;}< br/>. img_wrap {width: 258px; Border: 1px solid # CCC; border-radius: 15px; display: block; overflow: hidden ;}< br/> # Bos ul Li H2 {width: 100%; Height: 0px; line-Height: 50px; color: # FFF; text-indent: 1em; font-size: 14px; font-family:; position: absolute; bottom: 0px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; filter: progid: DXImageTransform. microsoft. gradient (Enabled = 'true', startcolorstr = '# 100', endcolorstr =' #44000000 '); Background: rgba (44000000, 0 ,. 6 );} <br/> </style> <br/> </pead> <br/> <body> <br/> <Div id = "bos"> <br/> <ul> <br/> <li> <br/> <a class = "img_wrap" href = "#"> </A> <br/> <H2> website fraud protection tips: free of charge for 59 RMB for full shopping </H2> <br/> </LI> <br/> <li> <br/> <a class = "img_wrap" href = "#"> </a> <br/> <H2> notification of delivery delay when the android client upgrades the new experience </H2> <br/> </LI> <br/> <li> <br/> <a class = "img_wrap" href = "#"> </a> <br/> <H2> Chen Nian talk about the brand's current work Bank E payment can be directly reduced by 60 yuan </H2> <br/> </LI> <br/> <li> <br/> <a class = "img_wrap" href = "#"> </a> <br/> <H2> Chen Nian talk about the brand's current branch ICBC e payment can be directly reduced by 60 yuan </H2> <br/> </LI> <br/> <li> <br/> <a class = "img_wrap" href = "#"> </a> <br/> <H2> You can pay by E of the sub-office of the brand in the old-year negotiation mode by RMB 60 </H2> <br/> </LI> <br/> <li> <br/> <a class = "img_wrap" href = "#"> </a> <br/> <H2> the original ICBC payment of the brand can be reduced by RMB 60 </H2> <br/> </LI> <br/> </ul> <br/> </div> <br/> </body> <br/> </ptml> <br/>

run the Code

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.