最佳答案
像下面那样使用您的CSS。
HTML
<div class="box mybox">
<h3>My Box</h3>
</div>
CSS
.box h3{
text-align:center;
position:relative;
top:80px;
}
.box {
width:70%;
height:200px;
background:#FFF;
margin:40px auto;
}
/*==================================================
* MyBox
* ===============================================*/
.MyBox
{
position: relative;
}
.MyBox:before, .MyBox:after
{
z-index: -1;
position: absolute;
content: "";
bottom: 15px;
left: 10px;
width: 50%;
top: 80%;
max-width:300px;
background: #777;
box-shadow: 0 15px 10px #777;
transform: rotate(-3deg);
}
.MyBox:after
{
transform: rotate(3deg);
right: 10px;
left: auto;
}
<div class="box MyBox">
<h3>MyBox</h3>
</div>
关于css - 不对称CSS阴影,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39138390/