箱子阴影被切断 [英] box-shadow being cut off

查看:101
本文介绍了箱子阴影被切断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用CSS3的 box-shadow 时,我遇到的问题通常不常见。



阴影通常只是出现在div边缘,但不在这一边。



box-shadow




$ b

pre> -moz-box-shadow:0 0 5px#555;
-webkit-box-shadow:0 0 5px#555;
box-shadow:0 0 5px#555;

干杯

解决方案

如果 box-shadow 正在截断,请确保在任何时候设置 overflow:visible div(s)中包含您的元素。


While using CSS3's box-shadow I am having an issue I do not usually have.

The box shadow usually just bleeds over the div edges, but not on this one.

box-shadow that is being cut off on the top and right hand side..

Heres the css I'm using for box-shadow:

-moz-box-shadow: 0 0 5px #555;
-webkit-box-shadow: 0 0 5px #555;
 box-shadow: 0 0 5px #555;

Cheers

解决方案

If box-shadow is being cut-off, make sure overflow:visible is set on any div(s) your element is contained in.

这篇关于箱子阴影被切断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆