使用CSS在边框上的边距

时间:2015-04-22 23:13:11

标签: css

好的,所以我在互联网上搜索了一个解决方案,但没有任何结果。我甚至使用了Bing(我绝望的)。基本上,我试图在这张照片中做些什么:

enter image description here

我想边缘边缘,所以它不会突破界限。如果我这样做,它看起来会很干净,但什么都没有出现。

1 个答案:

答案 0 :(得分:0)

如果边框为1像素,则可以在标签页(菜单顶部)上设置margin-bottom: -1px;。但诀窍在于,标签部分需要在菜单正文上面呈现,您可以使用position: relative; z-index: <somthing greater than the z-index of the menu body. Try 1 and go up from there>;来实现。