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