此问题已在此处有答案:
How to create CSS breadcrumbs with clip-path?(1个答案)
5天前关闭。
.header {
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 2;
opacity: 1;
display: flex;
flex-direction: row;
}
.nav-bar {
background-color: var(--nav-color );
box-sizing: border-box;
text-align: center;
height: 43px;
margin: 8px;
overflow: hidden;
border: 1.5px solid #000000;
}
.first {
position: relative;
z-index: 4;
width: 106px;
border-radius: 15px;
}
.second {
width: 100px;
position: relative;
left: -29px;
z-index: 3;
border-radius: 0 15px 15px 0;
}
.third {
width: 100px;
position: relative;
left: -60px;
z-index: 2;
border-radius: 0 15px 15px 0;
}
<!--===== HEADER =====-->
<header class="header">
<!--===== NAV-BAR =====-->
<a href=#home class="nav-bar first"><span class="nav-bar-title">Home</span></a>
<a href=#about class="nav-bar second"><span class="nav-bar-title">About</span></a>
<a href=#more class="nav-bar third"><span class="nav-bar-title">More</span></a>
</header>
navigation bar in Realme file manager
我想得到三角形形状的权利边缘,告诉我如何才能重新创建它。
如果有类似的导航栏模板,请共享。
代码片段包含我的版本的HTML和CSS代码,
2条答案
按热度按时间ohtdti5x1#
你可以使用
conic-gradient()
:...或伪元素上的某个
mask
:xqkwcwgp2#