css last child in breadcrumb template

心不动则不痛 提交于 2019-12-11 09:20:42

问题


I have done a breadcrumb template by using CSS. But the problem is, I am not able to remove the arrow (It should be simple without an arrow) from the last child.

I also need plain active css only for the last child.

Here is my demo http://jsfiddle.net/gDAq4/2/


回答1:


You can disable the pseudo-elements on only the last li:

#vert_menu li:last-child a::after,
#vert_menu li:last-child a::before {
    content: none;
}

See: http://jsfiddle.net/thirtydot/gDAq4/5/




回答2:


#vert_menu li:last-child a {  background:none; }
#vert_menu li:last-child a::after, #vert_menu li:last-child a::before {  border:none; }


来源:https://stackoverflow.com/questions/11557153/css-last-child-in-breadcrumb-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!