一、原始css样式:要删除掉背景图片
input:before {
- background: url(../images/check.png);//
- background-size: 100% 100%;
- content: "";
- font-size: 18px;
- font-weight: 400;
- text-decoration: none;
- left: 3px;
- top: 3px;
- position: absolute;
- width: 11px;
- height: 11px;
}
二、解决办法
1、jQuery解决方式:直接在input的添加以下标签,然后在添加样式,即可。
(1)$('.costinter-input').append("<style>.costinter-input::before{background:none}</style>");
(2)$('.costinter-input').css('background','#f0f0f0');