css怎么取消:after样式

公司写了一个公共样式,我自己的页面有一个样式,我想取消公共样式里的:after样式,该怎么写css?

clipboard.png
如图,:after样式使得左边多了一个小的箭头,我想去掉箭头,该怎么办?
下面是after样式:

.icon-left:after,
.icon-right:after{

content: "";
position: absolute;
top: .4rem;
left: .25rem;
height: .5rem;
width: .5rem;
font-size: 1rem;
border-right: .1rem solid $whiteColor;
border-top: .1rem solid $whiteColor;
border-left: .1rem solid transparent;
border-bottom: .1rem solid transparent;
z-index: 20;

}

阅读 18.8k
3 个回答
.icon-left:after,
.icon-right:after{display:none !important;}

那就只好换类名了吧。

要不不用这个样式,要不全改成默认的或者冲掉。

.icon-left:after, .icon-right:after{
    content: "";
    position: relative;
    top: 0;
    left: 0;
    height: auto;
    width: auto;
    font-size: 12px;
    border-right: 0 none;
    border-top: 0 none;
    border-left: 0 none;
    border-bottom: 0 none;
    z-index: 0;
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题