任何人都可以弄清楚如何让按钮重叠,flyout-content以便隐藏按钮的右边框?我想得到这个效果:

我已经尝试更改z-index内容和按钮,但它不起作用.
<div class='flyout'>
<button class="flyout-toggle">Click</button>
<div class="flyout-content"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
.flyout-toggle {
position: absolute;
transform: rotate(90deg);
top: 50%;
left: -50px;
z-index: 998;
width: 85px;
height: 35px;
font-size: 13px;
background: #92C7B8;
border: solid #fff 1px;
}
.flyout-content {
z-index:997
}
.flyout {
position: fixed;
z-index: 999;
top: 0;
right: 0;
width: 15%;
height: 100%;
border-left: solid #fff 1px;
background: #92C7B8;
-webkit-box-shadow: 0px -5px 15px 0px #bfbfbf;
box-shadow: 0px -5px 15px 0px #bfbfbf;
transition: all .3s ease-in-out;
}
Run Code Online (Sandbox Code Playgroud)
jus添加这个 border:none;
.flyout-toggle {
background: none repeat scroll 0 0 #92c7b8;
border: medium none;
font-size: 13px;
height: 35px;
left: -50px;
position: absolute;
top: 50%;
transform: rotate(90deg);
width: 85px;
z-index: 998;
}
Run Code Online (Sandbox Code Playgroud)
但如果你需要一个边框,你可以将它添加到你需要的地方,即border-top border-left border-right; 喜欢这个DEMO