gpt4 book ai didi

css - 删除圆形面包屑的左右背景颜色

转载 作者:太空宇宙 更新时间:2023-11-04 09:34:38 24 4
gpt4 key购买 nike

我为导航设置了圆形面包屑。如何删除如下图所示的左右背景。

enter image description here

.tabs {
overflow: hidden;
background: #eee;
}
.tabs a {
color: #363c46;
float: left;
width: 135px;
text-align: center;
line-height: 50px;
text-decoration: none;
}
.tabs a.active {
background: #fefb09;
border-radius: 30px;
}
.tabs a:first-child {
border-top-left-radius: 30px;
border-bottom-left-radius: 30px;
}
.tabs a:last-child {
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
background: #d1d1d1;
/* to render the right end look */
}
<div class="tabs">
<a class="active">Item 1</a>
<a>Item 2</a>
<a>Item 3</a>
<a>Item 4</a>
<a>Item 5 </a>
</div>

最佳答案

检查这个fiddle

.tabs {
overflow: hidden;
background: #eee;
display: inline-block;
border-radius: 30px;
}

关于css - 删除圆形面包屑的左右背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40459062/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com