隐藏部分阴影 [英] Hide Section of a Box Shadow
问题描述
免责声明:我已经看到以下问题,他们的解决方案不适用于我,即使他们是非常相似的情况:
简单地说,将 根据我所看到的,我似乎应该设置 我只是想知道if这是正常的行为,如果没有,如果有人可以帮助我这种情况。 谢谢,我真的很感激它。 EDIT :我把 你需要添加 Disclaimer: I have already seen the following questions and their solutions did not apply to me even though they are very similar situations: Simply put, I am trying to add a Based on what I have seen so far, it seems like I should set the I am just wondering if this is normal behavior and if not, if someone could help me out with this situation. Thanks, I really appreciate it. EDIT: I put You will need to add 这篇关于隐藏部分阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! -moz-box-shadow
添加到 .current_page_item code>类应用于我的网站顶部的标签导航中的当前活动标签。网站还没有包括实际的盒子阴影或任何这些变化,我只是一直在玩这些修改在firebug现在在我实际发布他们。当然,这会导致阴影出现在所有方面,所以底部边缘的阴影重叠到
.content
div中,它存储所有博客的实际内容,即帖子。 p>
z-index
的东西,不确定什么( ul.menu
)到 z-index
.content
div到更高的位置,但这似乎没有效果。
box-shadow
放在帖子之前,但我的意思是各个具体的指令,例如 -moz-box-shadow
。 overflow:hidden <作为honeybuzzer提到的
在
ul.menu
,但是由于这也将截断顶部阴影,你应该添加一些 padding- top
到 ul.menu
以及..
-moz-box-shadow
of 0 0 10px
to the .current_page_item
class that is applied to the currently active tab in the tab navigation at the top of my website. The website does not yet include the actual box-shadow or any of these changes, I have only been playing with these modifications in firebug for now before I actually publish them. Naturally this causes the shadow to appear on all sides, and so the bottom edge's shadow overlaps into the .content
div which stores all of the blog's actual content, i.e. posts.z-index
of something, not sure what (I have tried ul.menu
) to something lower and the z-index
of the .content
div to something higher, but this seems to have no effect.box-shadow
in the post earlier, but I meant the respective specific directives, such as -moz-box-shadow
. That was not the problem I was having.overflow:hidden
on the ul.menu
as honeybuzzer mentions, but since that would also cut-off the top shadow you should add some padding-top
to the ul.menu
as well..