The IE6 filter allows the child elements in the parent layer to be shadowed in the actual combat test

Source: Internet
Author: User

1. One:

<div class= "CORNERBG" >
<p class= "Title-file" >------</p>

......

</div>

. Cornerbg{width:992px;height:659px;background: #fff; border-radius:10px;box-shadow:0px 0px 20px #777; margin:14px Auto;filter:progid:dximagetransform.microsoft.dropshadow (offx=0,offy=0,color= ' #909090 ', Positive= ' true ', Gradienttype= ' 10 ');}

In the actual combat project, the text inside the child element P has a shadow.

2, two:

<div class= "CORNERBG" >
<p class= "Title-file" >------</p>

......

</div>

. Cornerbg{width:992px;height:659px;background: #fff; border-radius:10px;box-shadow:0px 0px 20px #777; margin:14px Auto;filter:progid:dximagetransform.microsoft.shadow (color= #909090, direction=120,strength=4);} Recommended

In the actual combat project, the text inside the child element P has a shadow.

3, best practice-or recommend the use of the PIE.HTC plug-in to achieve IE6 div layer Shadow and fillet effect

<style type= ' text/css ' >
. cornerbg{
Background: #fff;
width:992px;
height:659px;
border-radius:8px;
box-shadow:0px 0px 10px #B2C3D1;
MARGIN:14PX Auto;
position:relative;
top:14px;
Behavior:url ("__STATIC__/YJJ/CSS/PIE.HTC");
}
</style>

But note that the above style code to write the location must be in the HTML document, cannot write to the outside of the CSS file with the link reference, otherwise the PIE.HTC file is not referenced, invalid

The IE6 filter allows the child elements in the parent layer to be shadowed in the actual combat test

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.