javascript - css怎么取消:after样式

查看:110
本文介绍了javascript - css怎么取消:after样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

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


如图,: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;

}

解决方案

.icon-left:after,
.icon-right:after{display:none !important;}

这篇关于javascript - css怎么取消:after样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆