我在div上面有一个元素,它的样式是椭圆形的。我想在这个div上创建一个阴影以及椭圆形状的元素,但是我希望椭圆形状的元素上的阴影在div的下面。我在div和椭圆中都使用了box-shadow。我不知道是否有一个代码来裁剪阴影上的某个部分,以便我可以满足要求,层序列将是div- xD,椭圆-阴影,div,椭圆。作为参考,您可以查看下面的链接。http://jsfiddle.net/P4NKg/
发布于 2014-04-17 04:07:27
您可以简单地使用:
position:relative;/* this is what it was meant for on the first place move at screen element */
top:15px;/*to tune with radius value */可视bug的替代方案是:
box-shadow : 0px 15px white,/*to tune with radius value */
0px 25px RGB(5, 80, 150);/*add tuning to width expected */https://stackoverflow.com/questions/23118945
复制相似问题