如何在二十一主题wordpress中获取下拉菜单或父导航栏子项的底部圆 Angular
#access ul ul a {
background: #F9F9F9;
border-bottom: 1px dotted #DDD;
color: #444;
font-size: 13px;
font-weight: normal;
height: auto;
line-height: 1.4em;
padding: 10px 10px;
width: 168px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;`
如果我保持这样,那么所有下拉菜单项都会有边框,我只为最后一项注册了边框
最佳答案
使用 :last-child
选择器。您的 CSS 如下所示:
.menu-item:last-child a {
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
}
希望对您有所帮助!
关于css - 下拉菜单边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12021210/