开发者

can i remove a:after with jquery?

开发者 https://www.devze.com 2023-03-09 17:32 出处:网络
I got breadcrumbs and its build up like this. <div> <p> <a> so i style the a and a:after in the css

I got breadcrumbs and its build up like this. <div> <p> <a> so i style the a and a:after in the css

i want to remove the :after on the last a, is that possible somehow?

I got this code and i can addClass to the last element but no really remo开发者_运维问答ve the :after

$('#breadcrumbs p > a:last').removeClass('a:after');


:after is a selector and cannot be removed. You could create a css class to remove any styling that's been added to the a:after css rule though.

$('#breadcrumbs p > a:last').addClass('reset_link_style_class');
0

精彩评论

暂无评论...
验证码 换一张
取 消